You are not logged in.

#1 2009-09-28 01:46:25

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

new pacman [Solved]

I'm doing an upgrade tonight and I get this warning:

Targets (1): pacman-3.3.1-1 

Total Download Size:    0.60 MB
Total Installed Size:   2.10 MB

Proceed with installation? [Y/n]
:: Retrieving packages from core...
pacman-3.3.1-1-x86_64    618.9K  335.8K/s 00:00:02 [#####################] 100%
checking package integrity...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) upgrading pacman                              [#####################] 100%
warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew
[root@arch64 davek]#

So what happens to /etc/pacman.conf ?
Will the .pacnew directory take over ?

Last edited by vinoman2 (2009-09-28 11:46:22)

Offline

#2 2009-09-28 01:49:06

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: new pacman [Solved]

You should merge any changes you made in /etc/pacman.conf into the /etc/pacman.conf.pacnew file and then replace the old pacman.conf with the .pacnew file.

Offline

#3 2009-09-28 02:09:55

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: new pacman [Solved]

Allan wrote:

You should merge any changes you made in /etc/pacman.conf into the /etc/pacman.conf.pacnew file and then replace the old pacman.conf with the .pacnew file.

once the changes are merged, I rename /etc/pacman.conf.pacnew to /etc/pacman.conf and delete old .conf file... correct?

Offline

#4 2009-09-28 02:33:37

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: new pacman [Solved]

Make sure that the .pacnew file is up2date. And afterward replace that file with the .conf file. You could maybe rename the old file to pacman.conf.orig. That is what I do.

Birger smile

Offline

#5 2009-09-28 02:47:04

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: new pacman [Solved]

MindTooth wrote:

Make sure that the .pacnew file is up2date. And afterward replace that file with the .conf file. You could maybe rename the old file to pacman.conf.orig. That is what I do.

Birger smile

after comparing both files, the only difference is that /etc/pacman.conf ends with:
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64

and /etc/pacman.conf.pacnew does not.

why is there a /etc/pacman.conf.pacnew file at all?

Offline

#6 2009-09-28 03:03:47

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,577

Re: new pacman [Solved]

Okay. Here's what happened.

You had a /etc/pacman.conf file.  This was part of the Pacman package.  You may have made configuration changes to it, etc.  So when the new version of Pacman came out (with a new default config!), its new default config was saved to /etc/pacman.conf.pacnew.  You could replace /etc/pacman.conf with /etc/pacman.conf.pacnew, and you'd have a fresh, vanilla config.  So, what you should do is to apply any changes you have made to /etc/pacman.conf to /etc/pacman.conf.pacnew, and then replace the .conf with the .pacnew.  In this way, you'll be using the new defaults ( whether you spotted them or not wink ) along with any changes you had previously made.

Offline

#7 2009-09-28 03:15:18

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: new pacman [Solved]

vinoman2 wrote:

why is there a /etc/pacman.conf.pacnew file at all?

If you look more closely (e.g.: with `diff -up /etc/pacman.conf{,.pacnew} | less'), you'll notice that an option called NoPassiveFtp was removed from the new pacman.conf. Remove the same line from your /etc/pacman.conf and then delete the .pacnew file.

Offline

#8 2009-09-28 11:29:14

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: new pacman [Solved]

foutrelis wrote:
vinoman2 wrote:

why is there a /etc/pacman.conf.pacnew file at all?

If you look more closely (e.g.: with `diff -up /etc/pacman.conf{,.pacnew} | less'), you'll notice that an option called NoPassiveFtp was removed from the new pacman.conf. Remove the same line from your /etc/pacman.conf and then delete the .pacnew file.

Thanks I removed that line. I still have
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
at the bottom of my pacman.conf.  Is that OK to leave that?

Offline

#9 2009-09-28 11:43:28

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: new pacman [Solved]

vinoman2 wrote:
foutrelis wrote:
vinoman2 wrote:

why is there a /etc/pacman.conf.pacnew file at all?

If you look more closely (e.g.: with `diff -up /etc/pacman.conf{,.pacnew} | less'), you'll notice that an option called NoPassiveFtp was removed from the new pacman.conf. Remove the same line from your /etc/pacman.conf and then delete the .pacnew file.

Thanks I removed that line. I still have
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
at the bottom of my pacman.conf.  Is that OK to leave that?

It's just another repository, probably the one you used to install yaourt using pacman. Shouldn't be a problem if you leave it like that.

Offline

#10 2009-09-28 11:45:45

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: new pacman [Solved]

Runiq wrote:
vinoman2 wrote:
foutrelis wrote:

If you look more closely (e.g.: with `diff -up /etc/pacman.conf{,.pacnew} | less'), you'll notice that an option called NoPassiveFtp was removed from the new pacman.conf. Remove the same line from your /etc/pacman.conf and then delete the .pacnew file.

Thanks I removed that line. I still have
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
at the bottom of my pacman.conf.  Is that OK to leave that?

It's just another repository, probably the one you used to install yaourt using pacman. Shouldn't be a problem if you leave it like that.

Thanks smile

Offline

Board footer

Powered by FluxBB