viper25

Upgrade/Update Ubuntu (Linux)

May 26th, 2016 (edited)
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. #Upgrade Currently Installed Packages
  2. sudo apt-get update
  3.  
  4. #upgrade installed packages to their latest available versions:
  5. sudo apt-get upgrade
  6.  
  7. #Once it finishes, use the dist-upgrade command, which will perform upgrades involving changing dependencies, adding or removing new #packages as necessary. This will handle a set of upgrades which may have been held back by apt-get upgrade:
  8. sudo apt-get dist-upgrade
  9.  
  10. # It’s important to install this update manager core package this will trick the system to think there is a new LTS available and allow you to do an in place upgrade.
  11. # sudo apt-get install update-manager-core
  12.  
  13. # This is based on settings in /etc/update-manager/release-upgrades
  14. sudo do-release-upgrade
  15.  
  16. # Check Version
  17. lsb_release -a
  18.  
  19. #Clean cache
  20. sudo apt-get clean
  21.  
  22. #Used to remove packages that were automatically installed to satisfy dependencies for some package and that are no more needed.
  23. sudo apt-get autoremove
  24.  
  25. #Remove removes the package. Purge removes config files too. This of course, does not apply to packages that hold configuration files inside the user's home folder
  26. sudo man apt-get remove
  27. sudo man apt-get purge
  28.  
  29. #https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-16-04-lts
  30. #https://wiki.ubuntu.com/XenialXerus/ReleaseNotes
Add Comment
Please, Sign In to add comment