back       next

Debian / Ubuntu command notes for packages and service maintenance ...

APT-GET

  • Clean up non-existent data
    # apt-get autoclean

  • Update list
    # apt-get update

  • Install/update a package
    # apt-get install <pkg>

  • review dist-upgrade prior:
    # apt-get -Vsu -o Debug::pkgProblemResolver=yes dist-upgrade

  • Apply updates
    # apt-get -Vu upgrade

  • Upgrade all dependencies
    # apt-get -Vu dist-upgrade

  • Search cache
    # apt-cache search <pkg>

  • Remove and purge packages
    # apt-get --purge remove <pkg>

DPKG

  • Install/Update package
    # dpkg -i <pgk>

  • Check listing of installed packages
    # dpkg -l *<pkg>*

  • file belongs to
    # dpkg --search /path/to/file

  • List of file in package
    #dpkg -L <pkg>

  • Info about package
    # dpkg -s <pkg>

SERVICES

  • Manage services at init levels.
    # sysv-rc-conf
    # update-rc.d

Post new comment

  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.