You are not logged in.

#1 2013-08-18 16:45:28

maggie
Member
Registered: 2011-02-12
Posts: 255

List packages that are newer than repo packages [solved]

I just enabled [testing] and updated my system but I now removed [testing] from my pacman.conf and I want to downgrade the packages. Is there one-liner I can use to feed into pacman so don't have to copy/paste by hand? Look here:

# pacman -Syu
warning: archlinux-keyring: local (20130818-1) is newer than core (20130525-2)
warning: cryptsetup: local (1.6.2-1) is newer than core (1.6.1-2)
warning: device-mapper: local (2.02.100-1) is newer than core (2.02.98-4)
warning: gpgme: local (1.4.3-1) is newer than core (1.4.2-2)
warning: groff: local (1.22.2-4) is newer than core (1.22.2-3)
warning: isl: local (0.12.1-1) is newer than core (0.12-1)
warning: linux: local (3.10.7-1) is newer than core (3.10.6-2)
warning: lvm2: local (2.02.100-1) is newer than core (2.02.98-4)
warning: netctl: local (1.3-1) is newer than core (1.2-1)
warning: openresolv: local (3.5.6-1) is newer than core (3.5.5-1)
warning: perl: local (5.18.1-1) is newer than core (5.18.0-1)
warning: systemd: local (206-2) is newer than core (204-3)
warning: systemd-sysvcompat: local (206-2) is newer than core (204-3)

So I want a one-liner that will downgrade all of them but am not good with bash to figure it out. Something like:

# pacman -S $(something I don't know)

Thank you smile

Last edited by maggie (2013-08-18 20:13:40)

Offline

#2 2013-08-18 16:49:38

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: List packages that are newer than repo packages [solved]

pacman -Suu

pacman(8) wrote:

       -u, --sysupgrade
           ...
           Pass this option twice to enable package downgrades; in this case, pacman will select sync packages whose
           versions do not match with the local versions. This can be useful when the user switches from a testing
           repository to a stable one.

Last edited by falconindy (2013-08-18 16:51:02)

Offline

#3 2013-08-18 17:06:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: List packages that are newer than repo packages [solved]

How timely, was just googling for this myself.

Offline

#4 2013-08-18 20:13:22

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: List packages that are newer than repo packages [solved]

Thank you falconindy.

Offline

Board footer

Powered by FluxBB