FYI. I thought Id give the Live CD developers a heads-up on a possible issue I found with the locate command. My apologies if Im wrong or youre already aware of it. The live CD was very satisfactory otherwise.
I get a message that /var/lib/mlocate/mlocate.db cannot be found
when attempting to use the locate on the subject CD
Upon checking the /var/lib/mlocate directory I found it was empty.
However, I was able to use locate using the directory of a non-active CentOS5.5 installation on a hard drive as follows:
locate -d /mnt/disc/hdai/var/lib/mlocate/mlocate.db object-sought
Locate Command Problem on CentOS 5.5 Live CD
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Locate Command Problem on CentOS 5.5 Live CD
Welcome to the CentOS fora. Reading [url=https://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url] is recommended for new users.
The [b]locate[/b] command is meant to use the database regularly updated by [b]updatedb[/b] run by /etc/cron.daily/mlocate.cron; which does not really make sense for the LiveCD. I suppose it could be run once during the creation process to make the database. A RFE could be filed at the CentOS [url=http://bugs.centos.org/main_page.php]bug tracker[/url] or the [url=https://projects.centos.org/trac/livecd/]LiveCD project[/url].
The [b]locate[/b] command is meant to use the database regularly updated by [b]updatedb[/b] run by /etc/cron.daily/mlocate.cron; which does not really make sense for the LiveCD. I suppose it could be run once during the creation process to make the database. A RFE could be filed at the CentOS [url=http://bugs.centos.org/main_page.php]bug tracker[/url] or the [url=https://projects.centos.org/trac/livecd/]LiveCD project[/url].