Showing posts with label sudo. Show all posts
Showing posts with label sudo. Show all posts

Saturday, July 19, 2014

How to Update Packages in Ubuntu

The apt-get is an important command which works with Advavced Packaging Tool(APT) for updating package list,upgrading package list,installing new software etc.

The packaging system maintains one database which contains information of which packages are installed,which are not installed and which are available to install.The apt-get uses this database to install the various packages.

Update the list of available packages       :  sudo apt-get update
Install any particular package                  :  sudo apt-get install packagename
Reinstall any particular package              :  sudo apt-get --reinstall install packagename
Remove any particular package              :  sudo apt-get remove packagename

Upgrade the packages                              :  sudo apt-get -u upgrade
Upgrade any particular package              :  sudo apt-get -u install packagename

Search any particular package                 :  sudo apt-cache search packagename

SU Authentication Failure

The fresh installation does not assign root/super user password, so when you run su command first time it will show the message authentication failure. so you need to set super user password by running the following command.
$ sudo passwd
then it will ask for new password and then confirm password.

after this u can run su command.