You are not logged in.

#1 2014-05-25 14:03:42

syltao
Member
Registered: 2014-05-25
Posts: 3

Back to pkg original config

Hello,

Is it possible to remove a local pkg configuration and substitude by pkg original configuration?

Thanks

Sylvain

Offline

#2 2014-05-25 14:32:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Back to pkg original config

If by configuration you mean a package-provided file, then yes.

Easy option - rename the original (or delete it as you prefer) and reinstall the package.
Not as easy option - rename the original (or delete it as you prefer), extract manually the config file from /var/cache/pacman/pkg/foo.tar.xz.

Welcome to Arch.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-05-26 04:08:55

syltao
Member
Registered: 2014-05-25
Posts: 3

Re: Back to pkg original config

Thanks Graysky

When I remove a pkg which have altered config file, and re-install later, it don't use last install config file  (or ask which one to use).

Why the initial question : I probably made few wrong configs to restore suspend and powerkey management  (broken after pacman -Syu).
I belive scraps of hand made config may impede right running of power management, and whant to zero all related pkg.

Will ask in admin discussion topic if it's not a pacman stuff.


Sylvain

Offline

#4 2014-05-26 09:58:28

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Back to pkg original config

Your best option is to hunt down the "scraps" and tidy them up.

When you remove a package pacman will sometimes save the configuration with a .pacsave extension.  If you wish to prevent this from happening you need to use the "-n" option.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2014-05-26 10:50:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Back to pkg original config

Which package are we talking about and which file are you talking about?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2014-05-27 08:43:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Back to pkg original config

graysky wrote:

extract manually the config file from /var/cache/pacman/pkg/foo.tar.xz.

There's an app for that: pkg-extract_original
http://xyne.archlinux.ca/projects/pkg_scripts/ https://aur.archlinux.org/packages.php?ID=75258

Offline

#7 2014-05-29 00:58:16

syltao
Member
Registered: 2014-05-25
Posts: 3

Re: Back to pkg original config

Sorry to answer so late, I made many tests using suggestions.

I don't remember which files I changed. I made a ad-hoc config ~1.5 years ago, and probably some wrong changes one month ago after an update. I belive it was easy to solve and didn't anotate nothing.
I use "power management" wiki page, so I probably install and try to make work:
    systemd
    pm-utils
    Laptop Mode Tools
    TLP
    acpid
and specifc laptop scripts (I have a Asus eepc).
maybe I made change in kernel and/or udev rules.

Using ".pacsave" as suggested, I identified and old config file of acpi-eeepc-generic
I install it again, and activate the pacsave config file. No effect.

For all tentatives I try with and without windows manager (xserver/openbox. lxde is installed but not used) using "systemctl suspend"

The problem seams to appear when systemd subtitute grub. "power management" wiki page alert about possible conflict systemd/acpi.
I removed acpi-eeepc-generic, acpi, acpid, pm-utils, pm-quirks.

Nothing new :
"systemctl suspend" suspend but don't wake up.
power buton don't shutdown

Some suggestion ?! ;-)

Offline

Board footer

Powered by FluxBB