You are not logged in.

#1 2012-05-08 04:13:57

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

upgarde doesn't generate *.pacnew\*.pacsave files

I've tried the following

user@arch:/$ find /etc/ -name "*.pac*"
find: `/etc/polkit-1/localauthority': Permission denied
find: `/etc/sudoers.d': Permission denied

user@arch:/$ sudo find /etc/ -name "*.pac*"

user@arch:/$ locate *.pac*

with no luck.

user@arch:/$ uname -a:
Linux arch 3.3.4-2-ARCH #1 SMP PREEMPT Wed May 2 18:28:42 CEST 2012 x86_64 Intel(R) Core(TM)2 CPU T5300 @ 1.73GHz GenuineIntel GNU/Linux

user@arch:/$ pacman -V

.--.                  Pacman v4.0.3 - libalpm v7.0.3
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2012 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
'--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

In other words pacman over writes my config files instead of saving a copy of the new ones.
How do I make it save a copy instead of overwriting the files?

cheers,

Offline

#2 2012-05-08 04:25:54

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: upgarde doesn't generate *.pacnew\*.pacsave files

Both of these work for me

locate pacsave
locate *.pac*

Are you sure the database is up to date?  Try running updatedb as root to regenerate the database.

Check /var/log/pacman.log to see if any pacnew/pacsave files have actually been created.

Last edited by skunktrader (2012-05-08 04:43:45)

Offline

#3 2012-05-08 04:33:04

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: upgarde doesn't generate *.pacnew\*.pacsave files

Are there particular files you're expecting to get backed up? They're only going to be saved if they're in the backup array for a package or listed in pacman.conf. There's also files that will get overwritten in certain cases.
Take a a look at the wiki and the NoUpgrade option in the pacman.conf man page

Offline

#4 2012-05-09 05:17:29

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: upgarde doesn't generate *.pacnew\*.pacsave files

tried that.No luck
I am looking for in particular the laptop-mode.conf files...

Offline

#5 2012-05-09 06:08:12

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: upgarde doesn't generate *.pacnew\*.pacsave files

The laptop-mode PKGBUILD saves all the conf files. Did your changes get over-written? Check the behaviour in man pacman for conf files to see if the behaviour you're seeing is at odds with that (in that case, bug report time).


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2012-05-10 00:45:18

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: upgarde doesn't generate *.pacnew\*.pacsave files

Yes, changes got overwritten.
On my other computers\laptops there is no problem... I couldn't find anything on man pacman that indicates this. could it be my pacman config is wrong somehow on this laptop? As far as I know I didn't do anything differently.

Could I be calling --nosave somehow on pacman by default?

The orginal=X, current=Y, new=Z (from man pacman) option in pacman doesn't seem to work properly.

This is for all package upgrades not only laptop-mode.conf.

I upgrade with yaourt -Syu

Offline

#7 2012-05-10 03:50:00

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: upgarde doesn't generate *.pacnew\*.pacsave files

scarletxfi wrote:

I upgrade with yaourt -Syu

You should write a bug report for pacman, but first try pacman -Syu rather than yaourt. No idea what yaourt does when calling pacman.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB