J
Jeraldson
Guest
To do this you need sudo rights... press the keys : Ctrl + Alt + T and type in the following command:::::: "sudo apt-get update" enjoy your latest software and be current....
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
#!/bin/bash
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
And, of course, that only works on linux distros that use APT. Won't work on TinyCore, for example.
Actually, 'apt-get update' will only update the package lists, it doesn't update any installed programs/packages. To update any out of date packages that are installed on your machine you also need to use:
Code:sudo apt-get upgrade
And if there are any held-back packages when you update, you should then use:
The held back packages are typically packages that have new/changed dependencies. dist-upgrade will upgrade the packages and install and new dependencies and uninstall any unneeded dependencies.Code:sudo apt-get dist-upgrade
And after any dist upgrade, there might be some outdated/orphaned packages that are installed, or left in the cache which are no longer needed. So you should also remove them using:
Code:sudo apt-get autoremove
On my PC's with Debian based distros installed on them, I've put all four commands into a script called doupdate, which I store in the bin directory in my home directory (~/bin):
Code:#!/bin/bash sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
So when I want to update my machine, I just issue the command doupdate and it performs all of the update operations in one go!
Actually, 'apt-get update' will only update the package lists, it doesn't update any installed programs/packages. To update any out of date packages that are installed on your machine you also need to use:
Code:sudo apt-get upgrade
And if there are any held-back packages when you update, you should then use:
The held back packages are typically packages that have new/changed dependencies. dist-upgrade will upgrade the packages and install and new dependencies and uninstall any unneeded dependencies.Code:sudo apt-get dist-upgrade
And after any dist upgrade, there might be some outdated/orphaned packages that are installed, or left in the cache which are no longer needed. So you should also remove them using:
Code:sudo apt-get autoremove
On my PC's with Debian based distros installed on them, I've put all four commands into a script called doupdate, which I store in the bin directory in my home directory (~/bin):
Code:#!/bin/bash sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
So when I want to update my machine, I just issue the command doupdate and it performs all of the update operations in one go!
YUM.....For Fedora packages it's sudo yum update