Custom Search

Ubuntu update command line

Here is a guide for Ubuntu update in command line. There are two two commands you need to run. The first command is sudo apt-get update command to scan for available packages to update from Ubuntu support. If the update found a security patch or software packages update, then you need to run the next command which is sudo apt-get upgrade to install the updates. You must have Internet connection to run the command.

Here are example of Ubuntu update in command line:

luzar@ubuntu:~$ sudo apt-get update
Hit hardy Release.gpg
Get:1 hardy-security Release.
gpg [189B]Ign hardy-security/main Translation-en_US
Ign hardy-security/restricted Translation-en_US
Ign hardy-security/universe Translation-en_US
Ign hardy-security/multiverse Translation-en_US
Get:2 hardy-security Release [58.5kB]
Get:3 hardy-security/main Packages [67.9kB]
Ign hardy/main Translation-en_US
Get:4 hardy-security/restricted Packages [7159B]
Ign hardy/restricted Translation-en_US
Get:5 hardy-security/main Sources [15.2kB]
Ign hardy/universe Translation-en_US
Get:6 hardy-security/restricted Sources [1092B]
Ign hardy/multiverse Translation-en_US
Get:7 hardy-security/universe Packages [41.2kB]
Get:8 hardy-updates Release.gpg [189B]
Get:9 hardy-security/universe Sources [7068B]
Ign hardy-updates/main Translation-en_US
Ign hardy-updates/restricted Translation-en_US
Ign hardy-updates/universe Translation-en_US
Ign hardy-updates/multiverse Translation-en_US
Hit hardy Release
Get:10 hardy-updates Release [58.5kB]
Get:11 hardy-security/multiverse Packages [8637B]
Get:12 hardy-security/multiverse Sources [14B]
Hit hardy/main Packages
Hit hardy/restricted Packages
Hit hardy/main Sources
Hit hardy/restricted Sources
Hit hardy/universe Packages
Hit hardy/universe Sources
Hit hardy/multiverse Packages
Hit hardy/multiverse Sources
Get:13 hardy-updates/main Packages [378kB]Get:14 hardy-updates/restricted Packages [7103B]Get:15 hardy-updates/main Sources [98.7kB]Get:16 hardy-updates/restricted Sources [1092B]Get:17 hardy-updates/universe Packages [141kB]Get:18 hardy-updates/universe Sources [32.6kB]Get:19 hardy-updates/multiverse Packages [23.8kB]Get:20 hardy-updates/multiverse Sources [4020B]
Fetched 953kB in 34s (27.9kB/s)Reading package lists... Done

Running the apt-get upgrade command:

luzar@ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
bind9 bind9-host dnsutils libbind9-30 libisc32 libisccc30 libisccfg30
linux-image-server linux-server
The following packages will be upgraded:
apt apt-utils bind9-doc cpp-4.2 eject gcc-4.2-base initramfs-tools
iproute libapache2-mod-php5 libc6 libc6-i686 libdbus-1-3 libgcc1
libldap-2.4-2 liblwres30 libpcre3 libstdc++6 libxml2
linux-image-2.6.24-19-server pciutils php5-common php5-mysql
postfix procps python2.5 python2.5-minimal sudo tzdata ufw
update-manager-core xkb-data
31 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Need to get 40.7MB of archives.After this operation, 24.6kB of additional disk space will be used.Do you want to continue [Y/n]? Y
Get:1 hardy-updates/main
gcc-4.2-base 4.2.4-1ubuntu3 [100kB]
Get:2 hardy-updates/main libgcc1 1:4.2.4-1ubuntu3 [23.3kB]
Get:3 hardy-updates/main cpp-4.2 4.2.4-1ubuntu3 [2486kB]
Get:4 hardy-updates/main libstdc++6 4.2.4-1ubuntu3 [332kB]
Get:5 hardy-updates/main libc6 2.7-10ubuntu4 [4307kB]12% [5 libc6 2299022/4307kB 53%] 201kB/s 2min56

1 comment:

  1. I've been running Fedora forever, so I know "yum" pretty well, and I've done plenty of Ubuntu desktop installs, but this is the first time I've actually tried to run Ubuntu server. I'm going to guess that administering it will be no more difficult than Fedora, but I'm sure there will be a bit of a learning curve..... :-(


Please keep comment relevant and strictly no spam will be tolerated. Thank you.