Confusion about manjaro-pacnew-checker

The announcement of the update 2025-03-05 recommended manjaro-pacnew-checker and I installed it. Today, after an additional update kwin a window Management pacnew/pacsave came up showing this list

/usr/share/icons/default/index.theme.pacsave
/etc/passwd.pacnew
/etc/shells.pacnew
/etc/fwupd/remotes.d/lvfs-testing.conf.pacnew
/etc/locale.gen.pacnew
/etc/default/grub.pacnew
/etc/pam.d/kde.pacnew
/etc/pamac.conf.pacnew
/etc/mkinitcpio.conf.pacnew
/etc/pacman.conf.pacnew
/etc/makepkg.conf.d/rust.conf.pacnew
/etc/pacman-mirrors.conf.pacnew
/etc/sane.d/canon_lide70.conf.pacnew
/etc/sane.d/escl.conf.pacnew
/etc/pam.d/sddm.pacnew
/etc/systemd/homed.conf.pacnew
/etc/pam.d/login.pacnew
/etc/pam.d/su.pacnew

Four options (combine / Keep / Replace / Do nothing) are offered
Pacsave
but I need support, how to decide this.

Hi @MaMicha,

You, and only you can decide what to do with each file, except /etc/passwd.pacnew as this was specified in a previous update announcement can simply be deleted.

https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave#.pacnew

Whatever you do, do not blindly overwrite them. AFAIK they only get created for files you have made modifications to, so only you can see what should be done.

This is also a good reason and example of why you should always check and handle any and all .pacnew files with every update.

1 Like

Under no circumstance treat these three with No. 3!

/etc/passwd.pacnew

/etc/locale.gen.pacnew

/etc/default/grub.pacnew

You need to merge them (1).

It’s best just to look at the original and the .pacnew - what is the content, where does it differ
Should be easy to spot.

original is (for instance)
/etc/passwd

the change is in
/etc/passwd.pacnew



/etc/pacman.conf.pacnew

You can treat this with No. 3

To be on the safe side -
in case something goes sideways due to lack of experience or understanding -
make copies of all originals before you proceed to alter anything
so that you still have the original and can restore it.

meld is a good visual tool to see the differences and to merge the two

You probably have to practice some until you understand how it works - thus my advice to make copies of everything you work on before you do.

2 Likes

Basically this:

Make sure you have meld (or similar diff/merge software) installed. I prefer meld, so if you’re not sure - just get that first.

You will get a popup asking you what to do with the file… you can ‘merge’ at which time meld should open and you can then choose to click the arrow (move it across) or somethingi else - when done, you can remove the pacnew.

I just did a testdrive with this (cp /usr/share/index.theme /usr/share/index.theme.pacnew) and the software detected it and asked me what to do.

2 Likes

Well I run pacdiff -o after every update, and this is what I get.

[tracy@daphne ~]$ pacdiff -o
[tracy@daphne ~]$ 

I run:

$ sudo DIFFPROG=meld pacdiff -o

And up to now, I’ve not had any problems.

4 Likes

I have vim installed.

I generally don’t like GTK apps, but meld is, at least so far, the best/easiest difftool I’ve come across.

3 Likes

I have meld installed but I see the popup shown in my original posting.
How can I use meld from there?
What happens, I I answer “Do nothing” in case I’m not sure? Will I see the list with the remaining ones ever again?

The tool manjaro-pacnew-checker seems to be fine and useful, but for my understanding some description should be added, how to use it …

Furthermore, at least the German translation “das Original” is highly misunderstandable; in my case for the first entry:

$ cd /usr/share/icons/default/
[$ tree -DFfsi --timefmt '+%d.%m.%Y %H:%M:%S'
[       4096 +03.12.2024 16:26:01]  ./
[         30 +21.09.2024 00:10:39]  ./index.theme
[         37 +19.10.2020 14:57:07]  ./index.theme.pacsave

So, the actual one is index.theme (from 2024), the old one (from 2020) is index.theme.pacsave. So instead of “das Original” I propose the translation “die aktuell genutzte Version / the version, actually used”. Where to put this task?

Use vimdiff.

Ha! Wußte ichs doch - und jetzt fällt’s mir wieder ein - warum ich meinen Post erst in deutsch verfaßt hatte und dann alles nochmal auf englisch … :man_facepalming:
Dein Screenshot war deutsch.

translation of the above:
Ha! I knew it and now remember why I first wrote my post in german but then rewrote it in english again … the text in your screenshot was/is german.

Further with the quoted sentence:
what you have here is not a .pacnew file - it is a .pacsave file
the reason for it’s existence is something different
and crucially
nothing you need to worry about at this time (or ever).

@jrichard326 posted this link in another thread re .pacsave and .pacnew and system maintenance in general:

Manjaro Maturity - I'm finally working on my pacnew files and would appreciate guidance - #11 by jrichard326



I don’t think it’s wise to recommend vim to him.

Especially as she is using pacdiff correctly.

pacdiff -o

invokes vim by default. as does

pacdiff -s

That’s why she installed vim in the first place.

I’m pretty sure “she” is a “he” - but be that as it may be … :wink:

anecdotal:
vi or vim is difficult to use
in comparison to meld

merlock

6h

Use vimdiff.

In any case, as I have said. I use

pacdiff -o

To list and pacnew files, and what I get is

… it’s not the same kind of syntax, keyboard shortcuts?
I never managed to use it
I can use vi/vim to edit - but so far I failed to use vimdiff

there is a learning curve - and I did not get up

not yet, perhaps …

I’ll need some practice, I guess.

I’ve never had to use it. There’s always nothing to use it on.

But that brings up an interesting point. It is the default for pacdiff, and yet people unfamiliar with the CLI in general and vim in particular, are required to update config files from pacnew files in the CLI and using unfamiliar tools.

This is one reason why I believe ‘Operating Systems with Graphical User Interfaces require fully functioning Graphical Package Managers’

Even as far back as Mandrake Linux, this was done via the Package Manager.

1 Like

How can that be (true) when what you are using it for is to compare and merge differences between .pacnew and original files?

True that!

this was a fixed release distro (unlike Arch/Manjaro/Gentoo …)
was it not?

Well the fact is, that after the update on 05/03/2025 this is what I got.

[tracy@daphne ~]$ pacdiff -o
[tracy@daphne ~]$ 

Not a very long list of pacnew files.

yes - same for me
because you tended to them when and as soon as they came
as did I

Most people just don’t …

You saw them, I saw them.
“They” could have seen them - they probably even did.
But ignored them anyway …

but I did not, because there were none to tend.