useful apt-get commands


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #search
  2. apt-cache search packagename
  3.  
  4. #package info
  5. apt-cache show packagename
  6.  
  7. #clean
  8. sudo apt-get clean
  9. sudo apt-get autoclean #old packages
  10.  
  11. #check
  12. apt-get check
  13.  
  14. #get source code
  15. apt-get source packagename
  16.  
  17. #get dep
  18. apt-get build-dep packagename
  19.  
  20. #update/install/remove/upgrade
  21. sudo apt-get update
  22. sudo apt-get install packagename
  23. sudo apt-get remove packagename
  24. sudo apt-get upgrade
  25. sudo apt-get dist-upgrade

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.