https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave
MY advice is
Continuing the discussion from Why is the community repo missing?:
This recent post also includes some of the ‘easier’ options and additional hooks
https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave
MY advice is
Continuing the discussion from Why is the community repo missing?:
This recent post also includes some of the ‘easier’ options and additional hooks
unlikely - but we just have not seen what the questions where before whatever you did to have this result right now
no way to find out what held you up
Is not the configurationfiles updated when I do a regular update to the system with :
sudo pacman -Syyu
How do I update the configuration file for the “community” repo ?
You should not be using the double-y in general use. sudo pacman -Syu
is enough.
ALPM (pacman
) wont overwrite files you have edited.
If they match upstream exactly … then they will simply be overwritten, as with all the other pieces of the filesystem.
But when there is a difference … say you added a repo to your /etc/pacman.conf
… then when that file should be updated instead a pacnew
file is created.
It is then your responsibility to compare the files and merge the new changes.
All of this is covered in the links provided above.
Lets take this example.
/etc/pacman.conf.pacnew
was created for this expressed purpose.
Use any of the methods above (or, even manually do it yourself … but that wont help with all the other pacnews) to compare that file to your existing /etc/pacman.conf
.
The difference you will notice is the absence of the [community]
entry in the file.
Your /etc/pacman.conf
should reflect this. That is … that section should be deleted.
When that is done, the reference pacnew
file can likewise be removed.
You have now ‘handled a pacnew’.
In this case … it affects your package manager and available repositories … so we can use pacman tools to clean that up (yes to remove unused repos);
sudo pacman -Sc
And do the sync upgrade thing (and notice the lack of [community]
)
sudo pacman -Syu
This thread quickly became very difficult and complex for me.
Never thought it would be.
In this respect, I like windowsupdate much better, which just takes care of all the updating of the system automatically.
Ive given you 3 or more differently worded guides. Besides the upstream documentation.
I guess the absolute simplest I can make it is …
sudo pacman -Syu manjaro-pacnew-checker
pacnew-checker
I do not endorse this software and would not use it.
(and have not reviewed it recently for better or worse)
But I really dont know what else to offer.
Heres the thread of it
PS.
If you refuse to take the time to learn what this all means and, for example, simply overwrite all current files wit their pacnew counterparts do expect your system to break.
I have no problem using the commands in the terminal and prefer to avoid the GUI.
Then what is the problem?
pacdiff -s
The only problem is really that I have to understand how it works and that is why I am applying to this forum.
And I like the KISS principle very much.
I will try to highlight the most recent explanation in both english and portuguese.
The above commands would help you accomplish this.
By using pacdiff
in conjunction with a ‘comparison tool’.
By default that comparison tool is vim
, which is considered difficult, if even installed.
We can also define what tool by using an environment variable.
On a single line it may be
DIFFPROG=/usr/bin/meld pacdiff -s
Tentarei destacar a explicação mais recente em inglês e português.
Os comandos acima ajudariam você a conseguir isso.
Usando pacdiff
em conjunto com uma ‘ferramenta de comparação’.
Por padrão, essa ferramenta de comparação é o vim
, que é considerado difícil, mesmo que instalado.
Também podemos definir qual ferramenta usando uma variável de ambiente.
Em uma única linha pode ser
DIFFPROG=/usr/bin/meld pacdiff -s
Why on portuguese ?
English is fine …
Also, could you please confirm which kernel you are currently using (uname -r
in a terminal)? Your user profile says you are on 5.8.3-2-MANJARO, which is unsupported and went end-of-life in 2020.
I’m very much hoping that you have just omitted to update your forum profile (Summary - phmo - Manjaro Linux Forum) since you first joined, and that you are not running something so long out of date and which has not received any security patches for more than 3 years:
Sorry, guess I mixed it with another poster that had mentioned english was not first language.
My Kernel is now:
6.1.71-1-MANJARO
How about this (meld required):
sudo DIFFPROG=meld pacdiff
It displays all pacnew-files one after the other and offers options.
Oh, I am sorry. Now I have updated it.
Because its fundamentally wrong.
pacdiff -s
passes sudo
, actually sudoedit
to temporary files and applies the changes using sudo
afterwards …
What you are doing would be going around for no reason and all drawback
(such as feeding sudo
itself to the environment variable, and eventually the graphical application)
You can sudo meld file1 file2
… but you shouldnt.
Just the same as you shouldnt sudo kate
and have really no reason to.
(besides the mortal sin of starting a gui application with sudo
… kate
will ask for permissions if you try to save to a privileged location, so ‘sudo kate’ would be double silly)
Use the tools.
pacdiff -s
No problemo !
Hm, then please tell me a better solution. I have been able to organize the pacnew-files quite well in Arch, EndeavourOS and Manjaro over the last 4 years. I’m open to suggestions …
Its above you a dozen or more times.
Set the environment variable.
Run
pacdiff -s
Which also means if you cant be bothered to set it permanently you can just as well do
DIFFPROG=/usr/bin/meld pacdiff -s
Or in your version without the full path
DIFFPROG=meld pacdiff -s
I really dont understand whats so difficult.
Cheers all.