You are not logged in.
Anyone know how to get pacman to ignore multiple packages on an upgrade? The man page didn't seem to have the answer, so hopefully someone here knows.
I've tried the following three attempts, but none of them worked:
pacman -Syu --ignore package1 package2 package3
pacman -Syu --ignore package1,package2,package3
pacman -Syu --ignore package1, package2, package3
Thanks to anyone that knows...
oz
Offline
You should be able to add "IgnorePkg = package1 package2 package3" etc.. to pacman.conf [options] section and this way those packages will not be updated during pacman -Syu... Is that what you're looking for?
Offline
try (untested):
pacman -Syu --ignore package1 --ignore package2 --ignore package3
Offline
Perhaps the easiest way is to add the ignored packages to the IgnorePkg line in pacman.conf
---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare
Offline
Anyone know how to get pacman to ignore multiple packages on an upgrade? The man page didn't seem to have the answer, so hopefully someone here knows.
Hmm...
--ignore <package>
Directs pacman to ignore upgrades of package even if there is one
available. Multiple packages can be specified by separating them with a
comma.
Just to clarify, the following are possible. On command line :
--ignore pkg1 --ignore pkg2
or
--ignore pkg1,pkg2
In pacman.conf :
IgnorePkg = pkg1
IgnorePkg = pkg2
or
IgnorePkg = pkg1 pkg2
And you can combine the 4 possibilities.
Last edited by shining (2008-01-15 10:37:37)
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Same thing here with IgnorePkg = p=pkg_name. It doesn't work. It says that the package will be ignored but it installs it. Also it will replace newer packages although it says that the package installed is newer...
A bug?
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline
Thanks for the replies, guys.
In this case, I didn't want to edit pacman.conf itself, but indeed the repetition of --ignore for each package to be ignored does work, and I just needed to ignore a few packages on this one upgrade.
Thanks again to all that responded for your help.
oz
Offline
Same thing here with IgnorePkg = p=pkg_name. It doesn't work. It says that the package will be ignored but it installs it. Also it will replace newer packages although it says that the package installed is newer...
A bug?
Could you have a more precise example? Maybe just paste pacman output. You can use LANG=C pacman in case your system is localized.
Edit : also, what is this "p=pkg_name" stuff?
Last edited by shining (2008-01-15 12:57:32)
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
My mistake... It is IgnorePkg = pkg_name. It was slmodem packet. Pacman "said" warning: slmodem: ignoring package upgrade (2.9.11-34 => 2.9.11-37) but it installed slmodem 2.9.11-37.
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline
My mistake... It is IgnorePkg = pkg_name. It was slmodem packet. Pacman "said" warning: slmodem: ignoring package upgrade (2.9.11-34 => 2.9.11-37) but it installed slmodem 2.9.11-37.
Was that during pacman -Su ? In any cases, I can't reproduce it. But can you?
If you kept the old package in pacman cache : /var/cache/pacman/pkg , then you can reinstall the old version with pacman -U.
Then pacman -Su again.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
--ignore pkg1,pkg2
I had already tried that and for some reason, that method did not work from the command line because pacman wanted to install all the ignore packages.
Last edited by ozar (2008-01-15 14:22:58)
oz
Offline
shining wrote:--ignore pkg1,pkg2
I had already tried that and for some reason, that method did not work from the command line because pacman wanted to install all the ignore packages.
Was it with pacman 3.1?
If no : this only works with 3.1, I don't know what it would have done with 3.0.
If yes : it would be nice to have a precise example here too..
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
No, it was pacman 3.0, as it's one of the packages I don't want to upgrade just yet.
It doesn't matter anymore though, because the other method worked and I'm past the upgrade, now.
Edit: Oh, and here's the --ingore section out of man pacman for version 3.0, and it doesn't mention multiple packages:
--ignore package
Directs pacman to ignore upgrades of package even if there is
one available.
Last edited by ozar (2008-01-15 15:08:32)
oz
Offline
No, it was pacman 3.0, as it's one of the packages I don't want to upgrade just yet.
It doesn't matter anymore though, because the other method worked and I'm past the upgrade, now.
Edit: Oh, and here's the --ingore section out of man pacman for version 3.0, and it doesn't mention multiple packages:
--ignore package
Directs pacman to ignore upgrades of package even if there is
one available.
That's what I was trying to say. It wasn't possible to specify multiple packages for one --ignore option in 3.0 .
You had to use --ignore pkg1 --ignore pkg2.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
My mistake... It is IgnorePkg = pkg_name. It was slmodem packet. Pacman "said" warning: slmodem: ignoring package upgrade (2.9.11-34 => 2.9.11-37) but it installed slmodem 2.9.11-37.
Another thing to point out, if you have IgnorePkg = foobar and then "pacman -S foobar" then pacman assumes you're smarter than it, so installs it anyway (you _explicitly_ asked for foobar)
Offline
The mistake ocured with the use of the command pacman -Syu after having to upgrade pacman first... I will try to reproduce it.
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline