You are not logged in.

#1 2011-08-25 22:09:00

655321
Member
From: Costa Rica
Registered: 2009-12-08
Posts: 412
Website

[SOLVED] Exclude a package from pacman database without uninstalling

Hi all,

I have heroes of newerth installed from AUR and I would like to detach this package from the database so it doesnt get updated when I use packer, the reason is because when an update occurs, I have to download the whole game again, and if I dont update the game prompts me to update when I login and I get only the patch (which results in a 2 minutes download instead of an hour download)

So what I want to do Is tell pacman or packer that this package should be tracked an updated anymore, how can I do that?

cheers and thanks for the help

Last edited by 655321 (2011-08-26 22:02:51)


Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff

Offline

#2 2011-08-25 22:12:56

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

Re: [SOLVED] Exclude a package from pacman database without uninstalling

pacman has IgnorePkg, see 'man pacman.conf'.

Last edited by karol (2011-08-25 22:13:36)

Offline

#3 2011-08-26 07:32:46

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] Exclude a package from pacman database without uninstalling

If you plan on using the built-in updater, I recommend installing it via the installer (http://www.heroesofnewerth.com/download.php) instead of pacman.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#4 2011-08-26 08:45:01

655321
Member
From: Costa Rica
Registered: 2009-12-08
Posts: 412
Website

Re: [SOLVED] Exclude a package from pacman database without uninstalling

@Karol I know of that option but its more like totally excluding it from the database, I think I maybe have to download it again, remove the AUR version and install it  with installer.


Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff

Offline

#5 2011-08-26 15:01:42

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] Exclude a package from pacman database without uninstalling

rm -r /var/lib/pacman/local/$pkgname-$pkgver-$pkgrel/

However, I highly recommend that you DON'T do this.

Last edited by Stebalien (2011-08-26 15:03:03)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#6 2011-08-26 15:38:07

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

Re: [SOLVED] Exclude a package from pacman database without uninstalling

From man pacman

TRANSACTION OPTIONS (APPLY TO -S, -R AND -U)

-k, --dbonly
           Adds/Removes the database entry only, leaves all files in place.

This would probably be a more proper way than just deleting the files from /var/lib/pacman/local. Though it may be best to reinstall it outside of pacman like Karol suggested just to be sure nothing is inconsistant.

Offline

#7 2011-08-26 15:39:49

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

Re: [SOLVED] Exclude a package from pacman database without uninstalling

mcmillan wrote:

From man pacman

TRANSACTION OPTIONS (APPLY TO -S, -R AND -U)

-k, --dbonly
           Adds/Removes the database entry only, leaves all files in place.

This would probably be a more proper way than just deleting the files from /var/lib/pacman/local. Though it may be best to reinstall it outside of pacman like Karol suggested just to be sure nothing is inconsistant.

I didn't say it, Stebalien did ;P but I too think it would be the best choice.

Offline

#8 2011-08-26 17:24:17

655321
Member
From: Costa Rica
Registered: 2009-12-08
Posts: 412
Website

Re: [SOLVED] Exclude a package from pacman database without uninstalling

Weird, I have read pacman man page a few times and never noticed that switch tongue well if reinstall is the way to go then I will do that, thanks for the help big_smile


Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff

Offline

Board footer

Powered by FluxBB