LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   exclude some packages from updates using 'apt-get update' (http://www.linuxquestions.org/questions/debian-26/exclude-some-packages-from-updates-using-apt-get-update-4175412420/)

cccc 06-20-2012 05:38 AM

exclude some packages from updates using 'apt-get update'
 
Hi

I have wheezy installed.
Howto exclude some packages from updates using 'apt-get update'?

craigevil 06-20-2012 05:48 AM

Either use apt-pinning or hold the packages you do not want updated.

cynwulf 06-21-2012 05:58 AM

For apt-get
Code:

# echo "package-foo hold" | dpkg --set-selections
For aptitude (but the hold only applies to aptitude - apt-get will still go ahead and upgrade)
Code:

# aptitude hold package-foo
To prevent a specific version being installed with aptitude (i.e. this won't stop 0.0.1-buggy2 being installed or from apt-get installing 0.0.1-buggy1)
Code:

# aptitude forbid-version package-foo=0.0.1-buggy1
Where "package-foo" is the name of the package you want to put on hold.


All times are GMT -5. The time now is 10:02 AM.