You are not logged in.

#1 2010-08-24 19:53:51

genmich
Member
Registered: 2010-08-15
Posts: 6

[SOLVED] pacman: updating package. how to see old version?

Hi,
is it possible to see the old version of a package before doing an update? "pacman -Suu" only shows the new version and not the installed version

Thanks

Last edited by genmich (2010-08-24 20:22:55)

Offline

#2 2010-08-24 20:11:29

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] pacman: updating package. how to see old version?

pacman -Qu will show the upgradable packages, but it cannot be combined with "S".


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2010-08-24 20:18:13

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

Re: [SOLVED] pacman: updating package. how to see old version?

I've created this horrible hack and still keep it in my .bashrc:

# when 'pacman -Qu' isn't enough
newp () {
files=$(for i in $(sudo pacman -Quq); do
     find /var/lib/pacman/sync -iname $i-?\.* | cut -c 21-
     find /var/lib/pacman/local -iname $i-?\.* | cut -c 16-
done)
echo "$files";
}

The output leaves much to be desired but it's a "works for me" solution:

/core/kernel26-2.6.35.3-1
/local/kernel26-2.6.34.3-1

This means I've got kernel26-2.6.34.3-1 but I can upgrade to kernel26-2.6.35.3-1 if I want.

Last edited by karol (2010-08-24 20:20:39)

Offline

#4 2010-08-24 20:23:16

genmich
Member
Registered: 2010-08-15
Posts: 6

Re: [SOLVED] pacman: updating package. how to see old version?

Thanks for the quick answer!

Offline

#5 2010-08-24 20:26:44

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

Re: [SOLVED] pacman: updating package. how to see old version?

genmich wrote:

Hi,
is it possible to see the old version of a package before doing an update? "pacman -Suu" only shows the new version and not the installed version

Thanks

Actually, it shows both the old and new versions in a very pretty way:

[karol@black apps]$ sudo pacman -Suu
:: Starting full system upgrade...
warning: hdparm: downgrading from version 9.29-1 to version 9.28-1
warning: intel-dri: ignoring package upgrade (7.5.1-2 => 7.8.2-1)
warning: libdrm: ignoring package upgrade (2.4.19-1 => 2.4.21-2)
warning: libgl: ignoring package upgrade (7.5.1-2 => 7.8.2-1)
warning: lrzip: downgrading from version 0.46-1 to version 0.45-1
warning: stfl: downgrading from version 0.21-2 to version 0.21-1
warning: xf86-input-evdev: ignoring package upgrade (2.2.5-1 => 2.4.0-2)
warning: xf86-input-keyboard: ignoring package upgrade (1.3.2-2 => 1.4.0-2)
warning: xf86-input-mouse: ignoring package upgrade (1.4.0-2 => 1.5.0-2)
warning: ignoring package replacement (xf86-video-intel-legacy-2.3.2-3 => xf86-video-intel-newest-2.12.0-1)
warning: xf86-video-vesa: ignoring package upgrade (2.2.0-1 => 2.3.0-2)
warning: xorg-server: ignoring package upgrade (1.6.3.901-1 => 1.8.1.902-1)
warning: xorg-server-utils: ignoring package upgrade (7.4-7 => 7.5-5)
resolving dependencies...
looking for inter-conflicts...

I have all of the above packages in IgnorePkg:

IgnorePkg   = xorg-server xorg-server-utils xf86-video-intel-legacy xf86-video-vesa xf86-input-evdev xf86-input-keyboard xf86-input-mouse intel-dri libgl libdrm

Offline

#6 2010-08-27 16:58:06

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

Re: [SOLVED] pacman: updating package. how to see old version?

Offline

Board footer

Powered by FluxBB