Difference between revisions of "System Maintenance"

Added section on pacsave and pacnew
imported>Dalto
(Added section on time sync)
imported>Dalto
(Added section on pacsave and pacnew)
Line 41: Line 41:


You can also use Pacman to remove orphans as described in [[Pacman_Overview#Viewing_and_Removing_Orphans|this guide]]
You can also use Pacman to remove orphans as described in [[Pacman_Overview#Viewing_and_Removing_Orphans|this guide]]
=Managing pacnew and pacsave files=
A .pacnew file may be created during a package upgrade to avoid overwriting a file which already exists. A .pacsave file may be created during a package removal, or by a package installation of a package that was removed. These files require manual intervention from the user and it is good practice to handle them regularly.  The program {{ic|pacdiff}} can help manage this process. For example, here is what it looks like when the {{ic|/etc/default/grub}} grub file has changed:
sudo DIFFPROG=diff pacdiff
==> pacnew file found for /etc/default/grub
:: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q]
* {{ic|V}} shows the differences between the two files
* {{ic|S}} skips to the next change and allows you to deal with it later or manually
* {{ic|R}} keeps your existing file and delete the new file
* {{ic|O}} overwrites the existing file with the new file
* {{ic|Q}} quits the process without making further changes
Unfortunately, there is no perfect road map for how to deal with these files. If you keep the original config file, and the syntax has changed, the program may stop working or fail to use the existing config. If you remove the original file and use the new file without any changes, all your configuration settings can be overwritten.  Sometimes, you need to combine pieces from the new and old files to make everything to work.  In these situations it is better to integrate the files manually.




Line 67: Line 85:
* The [[Pacman_Overview|Pacman wiki article]]
* The [[Pacman_Overview|Pacman wiki article]]
* The [[Pamac|Pamac wiki article]]
* The [[Pamac|Pamac wiki article]]
 
* A forum post on [https://forum.manjaro.org/t/pacsave-pacnew-how-to-manage-those-reasonably/50968/5 managing pacsave and pacnew files]


[[Category:Contents Page]]
[[Category:Contents Page]]
Anonymous user