You are not logged in.

#1 2011-11-27 02:19:42

GutenYe
Member
From: China
Registered: 2011-11-27
Posts: 44
Website

pacman remove x11 configuration file.

hi, guys

# pacman -S xf86-input-synaptics
it install a /etc/X11/xorg.conf.d/10-synaptics.conf

but when `pacman -R xf86-input-synaptics`, it remove the '/etc/X11/xorg.conf.d/10-synaptics.conf` file WITHOUT a backup. so how can I keep the x11 configuration file when remove a package?

thanks


Linux, Vim, Ruby, Javascript and Go.

Offline

#2 2011-11-27 02:27:00

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: pacman remove x11 configuration file.

The PKGBUILD for xf86-input-synaptics contains the necessary line:

backup=('etc/X11/xorg.conf.d/10-synaptics.conf')

If you use a generic 10-synaptics.conf, you can easily grab it from /var/abs/extra/xf86-input-synaptics. It may be that the file is removed because its content hasn't been changed. If you modified the file, keep a copy in a safe place, just in case.

Last edited by bohoomil (2011-11-27 02:27:23)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2011-11-27 02:57:36

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: pacman remove x11 configuration file.

bohoomil wrote:

It may be that the file is removed because its content hasn't been changed.

This. The only reasons pacman will remove a config file are:

1) the file hasn't changed
2) the package was removed with the -n or --nosave flag.

Offline

#4 2011-11-27 12:29:16

GutenYe
Member
From: China
Registered: 2011-11-27
Posts: 44
Website

Re: pacman remove x11 configuration file.

falconindy wrote:
bohoomil wrote:

It may be that the file is removed because its content hasn't been changed.

This. The only reasons pacman will remove a config file are:

1) the file hasn't changed
2) the package was removed with the -n or --nosave flag.


thanks, my file hasn't changed, so it was removed. After I changed it, it was saved as .pacsave.


Linux, Vim, Ruby, Javascript and Go.

Offline

Board footer

Powered by FluxBB