Lesson 2

Date: 5/31/2017
Linux installation and upgrade
Linux System Administration


Advanced Package Tool (APT)

  • Configuration of /etc/apt/sources.list file in our class

    deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
    
    deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
    
    deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe main multiverse restricted
    
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports universe main multiverse restricted
    
    deb http://security.ubuntu.com/ubuntu/ xenial-security universe main multiverse restricted
    

  • 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