Software Updates Via Command Line —

I’m Laaaazy..

Ok I’m not really lazy.. but I do enjoy keeping my systems up to date the easy way, Luckily, I use a Debian Based Linux, so keeping my installed software up to date is easy, I even wrote a shell script to take care of it for me.
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get autoremove
sudo apt-get clean

This script checks the repositories for updates, downloads new packages, the dist-upgrade downloads new upgrades to things that normally don’t get upgraded like the Kernel.. the autoremove uninstalls packages that may no longer be used because they were installed as dependencies and are no longer required. The Clean removes all the cached *.deb files that were involved in the update.

I also use CentOS (based on RHEL) and it’s update script is simple.. it’s like this-
sudo yum check-update
sudo yum update
sudo yum clean all

Need more? How about.. OpenSuse? I use it as a Printer / Sane Server at home..
sudo zypper refresh
sudo zypper update

And I use.. Mac OSX! This one is neat.. I haven’t really tested it much I must admit. Note tho.. OSX only keeps the Apple software up to date, But I see a bandwagon of software repositories coming to OSX because of all the IOS and app-store happiness.
sudo softwareupdate -i -a

so all you need to do is save the applicable text as a text file, rename it to something like.. and then at a command prompt type:
in the folder you placed the item. .

If you are using windows there isn’t a real easy way to do it, but i did find an application you might want to look into called WuInstall
wuinstall /search
wuinstall /install

Categorised as: Apple | Geeking Out | Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.