PDA

View Full Version : [ubuntu] How to reject updates/upgrades?



DeMus
April 3rd, 2009, 03:55 AM
Through the normal updater I receive a message that a new update for a program I use is available.
Now I know that this version, which may be better, also has features I don't want since it makes working with it more complicated.
How do I prevent these updates from being installed, other than always unchecking the little checkboxes in the updater window? I like to see the items being removed from the list of updates, so even the orange icon in the top panel disappears "since there are no new updates anymore".
Who can help me?

unutbu
April 3rd, 2009, 04:08 AM
Edit (or make) /etc/apt/preferences.

Put as its contents


Package: PACKAGENAME
Pin: version VERSION
Pin-Priority: 1001

Change PACKAGENAME and VERSION as appropriate.

Priority 1001 means that package/version will never be replaced by apt.

See http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html
section 3.10

DeMus
April 3rd, 2009, 04:21 AM
Edit (or make) /etc/apt/preferences.

Put as its contents


Package: PACKAGENAME
Pin: version VERSION
Pin-Priority: 1001

Change PACKAGENAME and VERSION as appropriate.

Priority 1001 means that package/version will never be replaced by apt.

See http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html
section 3.10

Thanks, this is what I am looking for.

DeMus
April 3rd, 2009, 04:42 AM
Thanks, this is what I am looking for.

No, it isn't. It doesn't work,or I do something wrong.
I did find however another way: I unchecked the box in the Software sources windows in front of the server which gives me those updates. I only get one program from that server so I can do that without having the risk of not receiving other updates.

Partyboi2
April 3rd, 2009, 05:28 AM
Another way is to open up Synaptic and search for the package you don't want upgraded then highlight it and go to Package>Lock Version.