[ATrpms-users] OT: Exclude Package with Smart

Axel Thimm Axel.Thimm at ATrpms.net
Wed Jan 24 22:52:49 CET 2007


On Wed, Jan 24, 2007 at 04:42:08PM -0500, John Welch wrote:
> I know this is not directly related to the ATrpms repo, but since I am using
> the smart package manager rpms from here, and since I know at least some
> people on this list use smart I figured I would try here.
> 
> Is there any way to exclude and/or ignore a package (or set of packages) no
> matter what repo it comes from with smart?  I'm running FC6 and I've
> installed OpenOffice.org 2.1, which I downloaded directly from the
> openoffice.org web site.  However, both yum and smart insist that I should
> "upgrade" to the 2.0.4 version from the updates repo.  I've setup
> yum.confwith the 'exclude' directive, but I can't figure out how to do
> a similar
> thing with smart.  The closest I could find was the 'priority' option, but
> I've tried several different ways and I just can't seem to get the syntax
> right.  I thought if I set a negative priority this might help, but no
> matter what I try smart doesn't seem to like the minus sign in front of the
> priority number.  I even tried a command with almost the exact syntax of one
> of the examples from 'smart priority --help' and it didn't like that.
> 
> Any suggestions would be greatly appreciated.

I'm just in a thread on another list about why such a thing is bad
(selective/partial upgrading).

Anyway if you want to lock-in your installed versions of package foo
you can do

smart priority --set foo rpm-db 1000

You can do that also from the gui.

BTW the reason 2.0.4 is considered newer than 2.1 is because it has a
so called epoch of "1".
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20070124/e8ef49ff/attachment.bin 


More information about the atrpms-users mailing list