Notices


Reply
Thread Tools
Posts: 345 | Thanked: 127 times | Joined on Sep 2010
#1
Did a search but couldn't find what I needed. I just want to hold back kernel packages from updating. I'm trying to update other things in the xterm and want to avoid updating kernel-power to v48 (v47 works fine for me and v48 from what I've seen has a few problems.)

I found this thread..
http://ubuntuforums.org/showthread.p...+back+packages

Trying to do this though resulted in dpkg not recognizing the second command (to set the packages on hold.) Any help is appreciated.

Thanks.

Last edited by cincibluer6; 2011-09-10 at 17:45.
 
K9999's Avatar
Posts: 168 | Thanked: 116 times | Joined on Mar 2011 @ Malaysia
#2
when I do such thing, I disable all catalogs from AppMan except for the one that belongs to the program I wanna upgrade.
Then I simply:

root
apt-get update
apt-get upgrade

But if the packages that you don't wanna update are in the same catalog of the one you want to update then you gotta update each one by one. I dun know anyway other than that.

p/s: btw the link you stated requires a login to view.

Last edited by K9999; 2011-09-10 at 18:01.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#3
Much more convenient way, is to pinning version in apt-preferences.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
K9999's Avatar
Posts: 168 | Thanked: 116 times | Joined on Mar 2011 @ Malaysia
#4
Originally Posted by Estel View Post
Much more convenient way, is to pinning version in apt-preferences.
So it doesn't update if I pin it?
 
Posts: 345 | Thanked: 127 times | Joined on Sep 2010
#5
Originally Posted by Estel View Post
Much more convenient way, is to pinning version in apt-preferences.
Can you post a link to a method? I looked it up and I have no preferences file in my /etc/apt folder (maybe that way for a reason as nothing has been really changed I guess.)

@K999, yeah, sorry, forgot that it needed a login. Basically just stated making a txt file with the version from dpkg. Then you just edited it stating for it to "hold" instead of "install."
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#6
You might set the hold for the package named PACKAGE with:
Code:
sudo gainroot
echo PACKAGE hold | dpkg --set-selections
You later may regret your decision or want to test another version, so to remove the hold do
Code:
 sudo gainroot
echo PACKAGE install|dpkg --set-selections
To keep track of your held packages you type
Code:
dpkg --get-selections | grep hold
 

The Following 5 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 345 | Thanked: 127 times | Joined on Sep 2010
#7
Thanks michaaa62, that's perfect.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:46.