LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2012, 05:39 AM   #1
rasidrasid
Member
 
Registered: Jan 2012
Posts: 96

Rep: Reputation: Disabled
listing of apt-get packages


Hello,

is there a possibility to stop or hold some automatic upgrading or updating of specific packages? The ppp packages is making allways problems by apt-get upgrade or installing any other packages. I don't need the ppp to upgrade and i want to remove it from the upgrading list or tell apt-get to skip it always. Is there a list of packages who are waiting in a loop or queue?

Thanks in advance.
 
Old 03-12-2012, 05:42 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hello,

Yes there is a possibility to avoid upgrading specific packages if you want to stay with a particular version. Have a look at the man page for apt_preferences:
Code:
man apt_preferences
Kind regards,

Eric
 
Old 03-12-2012, 05:48 AM   #3
rasidrasid
Member
 
Registered: Jan 2012
Posts: 96

Original Poster
Rep: Reputation: Disabled
Ok, thank you. I will do it.

CU
 
Old 03-12-2012, 04:41 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
APT and Dpkg Quick Reference Sheet
Quote:
echo ``<package> hold'' | dpkg --set-selections Put <package> on hold (command line method)
aptitude - http://algebraicthunk.net/~dburrows/.../rn01re01.html
Using aptitude

With aptitude, you can hold a package using

#aptitude hold package_name

Example

#aptitude hold apache2

and remove the hold with

aptitude unhold package_name
 
1 members found this post helpful.
Old 03-13-2012, 05:43 AM   #5
rasidrasid
Member
 
Registered: Jan 2012
Posts: 96

Original Poster
Rep: Reputation: Disabled
Hello,

i did this in a command line:
echo ``<package> hold'' | dpkg --set-selections Put <package> on hold

and the shell was changing to:
>

What should i do now?


When i write sudo apt-get upgrade, the packages i dont want or set it to hold, were writen to upgrade. I dont want this?!

Regards.
 
Old 03-13-2012, 06:08 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Go to Synaptic Package Manager(System > Administration > Synaptic Package Manager)

Click search button and type package name.

When you find package select it and go to Package(in menu) and click Lock Version.

And you are done, now that package will not show in update manager and it will not be updated.

There are three ways of holding back packages, with dpkg, aptitude or with dselect.

One method using aptitude has been told you by cragevil.

Using dpkg:

Put a package on hold:

Code:
# echo "package hold" | sudo dpkg --set-selections
Displaying the status of your packages:

Code:
# dpkg --get-selections
Displaying the status of a single package:

Code:
# dpkg --get-selections | grep "package"
Using dselect:

With dselect, you just have to enter the [S]elect screen, find the package you wish to hold in its present state, and press = or H. The changes will go live immediately after you exit the [S]elect screen.
 
1 members found this post helpful.
Old 03-13-2012, 06:58 AM   #7
rasidrasid
Member
 
Registered: Jan 2012
Posts: 96

Original Poster
Rep: Reputation: Disabled
Thank you, i will try it. If i need help, i will come forward.

CU
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt/dpkg: How do I segregate user application packages from system packages? boxyzzy Ubuntu 2 12-03-2010 12:04 PM
How to prevent apt from deleting packages in /var/cache/apt/archives ? abc.linux Debian 11 11-07-2009 12:46 PM
listing the installed Packages nmansour Linux - Newbie 4 10-28-2007 03:16 PM
listing installed packages using rpm metallica1973 Linux - Software 4 08-21-2007 02:01 PM
Listing installed packages in Gentoo ? Builder Linux - Distributions 1 07-08-2004 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration