You are not logged in.
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. 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
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
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
Put the ignorepkg = in your pacman.conf. That way you don't have to type it ever again.
Offline
Put the ignorepkg = in your pacman.conf. That way you don't have to type it ever again.
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
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