You are not logged in.

#1 2008-01-15 04:13:54

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

--ignore multiple packages

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

#2 2008-01-15 04:17:16

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: --ignore multiple packages

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

#3 2008-01-15 06:05:42

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: --ignore multiple packages

try (untested):
pacman -Syu --ignore package1 --ignore package2 --ignore package3

Offline

#4 2008-01-15 08:26:15

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: --ignore multiple packages

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

#5 2008-01-15 10:32:56

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: --ignore multiple packages

ozar wrote:

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...

manpage wrote:

--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

#6 2008-01-15 12:36:42

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

Re: --ignore multiple packages

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

#7 2008-01-15 12:37:13

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: --ignore multiple packages

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

#8 2008-01-15 12:56:36

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: --ignore multiple packages

firewalker wrote:

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? neutral

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

#9 2008-01-15 13:33:47

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

Re: --ignore multiple packages

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

#10 2008-01-15 14:14:45

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: --ignore multiple packages

firewalker wrote:

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

#11 2008-01-15 14:21:44

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: --ignore multiple packages

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.

Last edited by ozar (2008-01-15 14:22:58)


oz

Offline

#12 2008-01-15 14:36:45

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: --ignore multiple packages

ozar wrote:
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

#13 2008-01-15 15:05:27

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: --ignore multiple packages

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

#14 2008-01-15 15:18:05

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: --ignore multiple packages

ozar wrote:

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

#15 2008-01-15 18:05:17

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: --ignore multiple packages

firewalker wrote:

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

#16 2008-01-15 22:04:26

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

Re: --ignore multiple packages

The mistake ocured with the use of the command pacman -Syu after having to upgrade pacman first... I will try to reproduce it.


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

Board footer

Powered by FluxBB