Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 16584  / 2 Years ago, wed, february 23, 2022, 12:27:34

I have installed Ubuntu 12.04 on Amazon EC2. Sometimes after connecting with the instance I get the following



7 packages can be updated.
4 updates are security updates.


How can I find which packages can be updated? Can I choose if don't wish to update some packages?


More From » updates

 Answers
5

You can see what updates are available by typing as sudo aptitude.



For example,



aptitude



And if you don't want any package to update, then you can lock that package.




  1. Open a terminal

  2. Type sudo -s and hit enter

  3. Enter your password for sudo



    echo libxfont1 hold | dpkg --set-selections

  4. Replace libxfont1 with the package you want to pin

  5. Now run sudo apt-get update and then sudo apt-get upgrade.



For more information, check how to pin packages.


[#34063] Thursday, February 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingssex

Total Points: 21
Total Questions: 122
Total Answers: 98

Location: Sweden
Member since Fri, Mar 26, 2021
3 Years ago
ingssex questions
;