Lesson 2

Date: 1/29/2014
Linux installation and upgrade
Linux for Engineering and IT Applications


Advanced Package Tool (APT)

  • Configuration of /etc/apt/sources.list in our class
    deb http://us.archive.ubuntu.com/ubuntu precise main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
    
    deb http://us.archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
    
    deb http://us.archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
    deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
    

  • After updating config files and periodically, run
    apt-get update
    

  • Upgrade packages
    apt-get upgrade
    

  • Search for string in known packages
    apt-cache search ncurses
    apt-cache search --names-only ncurses
    
    

  • Install a package
    apt-get install libcurses-perl
    

  • Check if a package has been installed and can be updated
    apt-cache policy libcurses-perl
    

  • Clean the cached deb packages after installations
    apt-get autoclean
    

  • More instructions on APT are available in APT manual


  • Take me to the Course Website