You are not logged in.

#1 2008-01-02 14:10:03

jacko
Member
Registered: 2007-11-23
Posts: 840

how NOT to upgrade a package while pacman -Syu

This may sound confusing, but I am trying to keep my system up to date with the latest software, but I do not want to upgrade one package or else I am 110% sure I will break my system.

So when I run pacman -Syu, it tells me that I have 4 packages to upgrade, one being the package I do not want to update. So far the only way I found to upgrade my system but still keeping it unbroken is having to manually install all theremaing upgrades using

pacman -S name_of_packages_that_need_to_be_upgraded.

which can be a long list (3 in this case), especially if I don't do it for awhile.

My question is, is there a way to stop pacman from trying to always upgrade the one package I do not want and upgrade all the rest just like its supposed to?

I have not found a way to do this, but I am not fluent enough with the package manager to know if there is a command for this task. If there isn't such a command, then how hard would it be to add this functionality? I know this kinda goes against the arch way, but so does manually upgrading each package individually. sad KISS

Any help would be appreciated and I can clearly understand if this can't be resolved.

Last edited by jacko (2008-01-02 14:12:28)

Offline

#2 2008-01-02 14:17:13

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: how NOT to upgrade a package while pacman -Syu

What you want is the IgnorePkg option in pacman.conf.  Check out man pacman.conf

Last edited by Cerebral (2008-01-02 19:05:33)

Offline

#3 2008-01-02 14:21:13

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: how NOT to upgrade a package while pacman -Syu

I just seen that, thanks, somehow I missed it to begin with. Thanks for the fast response though.

For anyone else who happens to read this. From the manual pages for yaourt (pacman wrapper program in the AUR)

-S -u  --ignore <pkg>             skip some package

Last edited by jacko (2008-01-02 14:26:37)

Offline

#4 2008-01-02 16:02:49

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: how NOT to upgrade a package while pacman -Syu

Put the ignorepkg = in your pacman.conf. That way you don't have to type it ever again.
wink

Offline

#5 2008-01-02 16:19:35

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: how NOT to upgrade a package while pacman -Syu

Misfit138 wrote:

Put the ignorepkg = in your pacman.conf. That way you don't have to type it ever again.
wink

I will add, I put this under the general options part of pacman.conf for anyone who is confused that is reading this. Great tip this one here is. One more question though? would u put multiple packages on one line or would u add a ignorpkg = for every package u don't want upgraded?

#
# GENERAL OPTIONS
#
[options]
LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
ignorepkg   = lib32-glibc

Offline

#6 2008-01-02 16:41:18

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: how NOT to upgrade a package while pacman -Syu

from the man page for pacman.conf

       IgnorePkg = package ...
              Instructs pacman to ignore any upgrades for  this  package  when
              performing a --sysupgrade.

yes. you can put multiple packages in one IgnorePkg line, and/or you can have multiple IgnorePkg lines.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB