You are not logged in.

#1 2009-02-02 20:21:29

adamlau
Member
Registered: 2009-01-30
Posts: 418

Pacman Requests To Installs Lower Versioned Package Oddity?

'-Syu' wants to install truecrypt-6.1a-2 from extras when I already have truecrypt-6.1a-100 installed and visible (-Qi). I version my builds starting from 'pkgrel=100' to prevent the upgrade process from installing what is already installed. '-Syu' is expected to produce:

warning: truecrypt: local (6.1a-100) is newer than extra ( 6.1a-2)

Instead, I must run '-Syu --ignore truecrypt' and receive:

warning: truecrypt: ignoring package upgrade (6.1a-100 => 6.1a-2)

I can deal with pacman warning me about installed packages being newer than what is available in the repos, but truecrypt - and truecrypt alone - wants to install if not set to be ignored. Are there other methods of flagging packages be prevent them from being overwritten?

Last edited by adamlau (2009-02-02 20:53:25)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2 2009-02-02 20:38:27

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: Pacman Requests To Installs Lower Versioned Package Oddity?

Hrm... I'm wondering if Pacman is doing a string comparison rather than numerical. Try changing your pkgrel to 999 (or simply 3, for this case) and see if Pacman keeps complaining.


M*cr*s*ft: Who needs quality when you have marketing?

Offline

#3 2009-02-02 20:39:14

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Pacman Requests To Installs Lower Versioned Package Oddity?

If you look at the Arch PKGBUILD, truecrypt has the 'force' option set. I don't know anything about truecrypt, but usually this means that the devs thought that it was imperative that this package gets upgraded.

Offline

#4 2009-02-02 20:52:08

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Pacman Requests To Installs Lower Versioned Package Oddity?

'pkgrel=8' results in the same, unexpected behavior.  Though now the behavior is expected once I examined the ABS PKGBUILD. skottish is spot on, {options=('force')}. Is there an available option to override {options=('force')} flagged packages from the repos?

Last edited by adamlau (2009-02-02 20:55:07)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#5 2009-02-02 21:36:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Pacman Requests To Installs Lower Versioned Package Oddity?

Yes, --ignore, as adamlau has above.

Offline

Board footer

Powered by FluxBB