You are not logged in.

#1 2013-02-22 15:51:54

Butcher
Member
Registered: 2009-02-04
Posts: 158

[Solved] Avoid the installation of certain files inside a package

Hi, I would like to tell pacman not to extract certain files when installing some package. I asked on IRC and there were different answers, none of them sounded convincing to me. The best one was to use the NoExtract pacman.conf line:

NoExtract   = /usr/share/ca-certificates/cacert.org/cacert.org.crt /usr/share/ca-certificates/debconf.org/ca.crt

But it does not work, the files are still being installed. Thanks in advance, guys!

Last edited by Butcher (2013-02-22 16:38:39)

Offline

#2 2013-02-22 16:11:14

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Avoid the installation of certain files inside a package

Read the man page entry again:

man pacman.conf wrote:

NoExtract = file ...
           All files listed with a NoExtract directive will never be extracted from a package into the filesystem. This can be useful when you don?t want part of a package to be installed. For example, if your httpd root uses an index.php, then you would not want the index.html file to be extracted from the apache package. These files refer to files in the package archive, so do not include the leading slash (the RootDir) when specifying them.

Offline

#3 2013-02-22 16:38:28

Butcher
Member
Registered: 2009-02-04
Posts: 158

Re: [Solved] Avoid the installation of certain files inside a package

True that, thanks. Marking as solved

Offline

Board footer

Powered by FluxBB