You are not logged in.
Pages: 1
Hi all,
I just compared my pacnew files to their equivalents and deleted the pacnew ones. If I go to Gnome and use the "find files" utility it cant find any pacnew files, as expected as I deleted them!
But if I use
locate *.pacnew
all the pacnew files still appear! Why is this?
Thanks
There is no spoon in Arch...
Offline
locate uses a database. Probably it hasn't been updated since you deleted the files. That should be taken care by crond.
Offline
so how do I sort this out then?
There is no spoon in Arch...
Offline
You should be OK if you have crond in the DAEMONS array of rc.conf
You can also run :
# updatedb
to update the database.
Offline
ok, thanks!
There is no spoon in Arch...
Offline
I already had crond in the daemons list... so why doesn't it update the database automatically?
There is no spoon in Arch...
Offline
try this in a terminal:
updatedb -u
might help.
-- woodstock
Offline
doing that right now. hope it works!
There is no spoon in Arch...
Offline
crond updates it at midnight. so your computer obviously hasnt been on at midnight for a while.
Offline
crond updates it at midnight. so your computer obviously hasnt been on at midnight for a while.
Yupp, tpowa posted a nice feature request in the bugtracker to work around
that "midnight not running" issue
-neri
Offline
You can also use anacron from my repo. It updates at boot ups (well, 20 min. after). I will add this comment to the bugtracker.
Offline
At the risk of sounding like an idiot...
is "updatedb -u" equivalent to "locate -u" ? I've used the latter (locate -u) for quite some time.
Offline
At the risk of sounding like an idiot...
is "updatedb -u" equivalent to "locate -u" ? I've used the latter (locate -u) for quite some time.
updatedb is a link to slocate. (locate is a link too ) By default, updatedb == updatedb -u
Offline
Snowman is correct. I just remember that in my Slackware days I had to use a combination of updatedb and slocate to find .new files and edit them by hand. Much like Arch has the .pacnew or .pacsave files.
MEfreak, don't worry about asking those types of questions, we wont bite your face off. At least I wont.
-- woodstock
Offline
Thanks for all the help guys, I think I get it now! It would be nice if slocate automatically updated the database once you deleted a file.
How does Windows accomplish this? If you delete a file it immediately no longer registers in a search. Also Gnome's search is a lot better at this as well. Does Gnome use fam to do this?
There is no spoon in Arch...
Offline
Thanks for all the help guys, I think I get it now! It would be nice if slocate automatically updated the database once you deleted a file.
How does Windows accomplish this? If you delete a file it immediately no longer registers in a search. Also Gnome's search is a lot better at this as well. Does Gnome use fam to do this?
locate is meant to cache for speed reasons.
If you don't want/like that; use `find` and all is well
Offline
right, of course. thats another cool idea
There is no spoon in Arch...
Offline
I use find myself... never touch locate, as I don't like keeping the db up to date
Offline
I think I might start doing that as well now, phrakture. Too much hassle to worry about right now!
There is no spoon in Arch...
Offline
find . -name '*.pacnew*'
To find all files in the local dir.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
If you use find instead of locate, you dont need to update anything.
find / -name '*.pacnew'
And if you dont want to keep the updates files :
find -name '*.pacnew' -exec rm {} ;
Usually, you only need to look into /etc :
find /etc -name '*.pacnew'
Offline
Pages: 1