LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   listing of apt-get packages (https://www.linuxquestions.org/questions/linux-software-2/listing-of-apt-get-packages-934007/)

rasidrasid 03-12-2012 04:39 AM

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.

EricTRA 03-12-2012 04:42 AM

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

rasidrasid 03-12-2012 04:48 AM

Ok, thank you. I will do it.

CU:D

craigevil 03-12-2012 03:41 PM

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

rasidrasid 03-13-2012 04:43 AM

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.

Satyaveer Arya 03-13-2012 05:08 AM

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.

rasidrasid 03-13-2012 05:58 AM

Thank you, i will try it. If i need help, i will come forward.

CU


All times are GMT -5. The time now is 01:56 PM.