You are not logged in.

#1 2007-09-26 15:00:58

fiod
Member
Registered: 2007-04-02
Posts: 205

Automatic way to recover from [testing] ?

Hey

I did a pacman -Syu with [testing] enabled.

Is there an automatic way to downgrade back all those new packages from [testing]?

Tnx
Fiod

Offline

#2 2007-09-26 15:10:18

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Automatic way to recover from [testing] ?

Afaict, disable testing, do a pacman -Sy, check the messages about packages being newer than those on the repos, and reinstall those.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2007-09-26 15:11:56

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Automatic way to recover from [testing] ?

Tnx for the reply.

But that is not an "automatic" way, but a manual one... smile)

fiod

Offline

#4 2007-09-26 15:13:29

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Automatic way to recover from [testing] ?

Unfortunately, there's no automatic method.  Best way would be to check your pacman log file for the packages you upgraded from testing, disable the repo in pacman.conf, then pacman -S all those packages.

-edit- B's method would work too - "X on your system is newer than Y in [extra]" should show up for all the testing packages once the repo is disabled.

Last edited by Cerebral (2007-09-26 15:15:30)

Offline

#5 2007-09-26 15:17:40

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Automatic way to recover from [testing] ?

Ok, thanks.

Can you think of an awk/sed or whatever script to "cut" the first words (meaning: package name)
of all the lines that look like that:

warning: xf86dgaproto: local (2.0.3-1) is newer than extra (2.0.2-1)
warning: xkeyboard-config: local (1.0-1) is newer than extra (0.9-2)
warning: xorg-server: local (1.4-3) is newer than extra (1.2.0-5)
warning: xproto: local (7.0.11-1) is newer than extra (7.0.10-1)
...

tnx
fiod

Offline

#6 2007-09-26 15:35:19

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Automatic way to recover from [testing] ?

pacman-command-here 2>&1 | grep "is newer than" | cut -d' ' -f2 | cut -d':' -f1

That should do it for you.

Offline

#7 2007-09-26 15:43:49

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Automatic way to recover from [testing] ?

great.

thanks a lot.

fiod

Offline

#8 2007-09-26 15:58:25

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Automatic way to recover from [testing] ?

hey again

Suppose I got a file with the names of the packages I want to upgrade.

How do I tell pacman to upgrade those packages?

I tried all these, which didn't work:

pacman -S | cat filename
cat filename | pacman -S
pacman -S 'cat filename'

tnx
fiod

Offline

#9 2007-09-26 16:37:37

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Automatic way to recover from [testing] ?

never mind.

got it.

the problem was with the quotes.

pacman -S `cat filename`

worked.

tnx
fiod

Offline

#10 2007-09-26 17:12:37

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Automatic way to recover from [testing] ?

yup - that'll work fine.  It's the same as pacman -S $(cat filename)

Offline

Board footer

Powered by FluxBB