You are not logged in.
Hey Archers,
So I performed a system upgrade and got a couple warning messages similar to: "file" was saved as "file.pacsave" (where file is some actual filename).
From what i understand, pacman has made a backup of "file" if it was previously modified, right?
Ok, so i figured I would go to the directory of the "file" to see what's up. Here's what I don't get: once I'm in the directory, I see something similar to "file.pacnew" and "file.pacsave" but I don't see any plain "file".
What does this mean? Was there no "file" to begin with? For example, one of the files i'm having this issue with is the "crond" file. When i navigate to it's location, there is no "crond" file, i only see "crond.pacnew" and "crond.pacsave".
What should I do with these files? The .pacnew version has a more stuff in it. Do I have to rename "file.pacnew" files to "file"? Or should i rename the .pacsave files instead? Is there supposed to be a plain "file" there in the first place?
For another file called "man-db" i actually still do see a plain "man-db" file in it's location, but there is now also a "man-db.pacnew" as well. Shall i merge/replace the original file with the pacnew version in this case?
Thanks for the help!:rolleyes:
Last edited by trusktr (2010-03-21 19:49:40)
joe@trusktr.io - joe at true skater dot io.
Offline
It is explained in pretty thorough detail here: http://wiki.archlinux.org/index.php/Pac … save_Files
Offline
alright, cool, thanks jason. I read it. One thing that is not mentioned though is what happens when you manually merge a file: will the new file have the appropriate checksums for the next time you upgrade, or will you always have to edit this file from now on, forever (unless you use the .pacnew file to replace the old file)?
Last edited by trusktr (2010-03-21 08:48:37)
joe@trusktr.io - joe at true skater dot io.
Offline
If you upgrade a package, and the devs have changed a relevant config file - say added a new field(s), then it will be accompanied by a .pacnew. It is then your responsibility to review the difference and accept any changes into your config file (and delete the .pac* file if you are keeping your system clean). Just using .pacnew and deleting the original would only be an option if you had made no changes to it.
Offline
When you end up with foo.pacnew and foo.pacsave but no plain foo, I think the file has been removed from the package. At some point it was altered so a .pacnew file was created (which is not tracked by pacman), and when it was removed, a .pacsave file was also created (this way you don't lose settings when configuration files get moved around within a package).
I would figure out which package created those files, then move them somewhere else and re-install the package. If you don't find "foo" in the package, you can probably delete foo.pacnew and foo.pacsave.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks jason. ![]()
Hey Xyne, so i renamed my crond.pacnew to crond (there was no crond before). I don't really know if i need it. I've never messed with it before.
Mine looks like this:
/var/log/crond.log {
sharedscripts
copytruncate
missingok
postrotate
kill -HUP `cat /var/run/cron.pid`
endscript
}
and it's in the /etc/logrotate.d/ directory. Think I may need it? I have no idea what that stuff means. hehe I just started using Linux just over a month ago with Arch! wooo!! ![]()
joe@trusktr.io - joe at true skater dot io.
Offline
Next time, don't cross post.
Offline
Sorry, i didn't know i was cross-posting. In this thread i was trying to understand what the pacnew and pacsave files were for, and in the other i had issues with actually merging a specific file with the pacnew. But i guess they're similar topics! ![]()
joe@trusktr.io - joe at true skater dot io.
Offline
trusktr, you should know better than to create two posts that have several words in common. How are people who don't actually read them supposed to know that they're different? Really, you have to keep in mind that many people here are also /.ers. ![]()
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
hehe, uhhhh, /.ers = slashers? ![]()
joe@trusktr.io - joe at true skater dot io.
Offline