linux poison RSS
linux poison Email

DPKG and APT-GET commands for packages (Debian/Ubuntu)

APT-GET

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

    * Update list
      # apt-get update

    * Install/update a package
      # apt-get install

    * 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

    * Remove and purge packages
      # apt-get --purge remove

DPKG

    * Install/Update package
      # dpkg -i

    * Check listing of installed packages
      # dpkg -l **

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

    * List of file in package
      #dpkg -L

    * Info about package
      # dpkg -s


1 comments:

Post a Comment

Related Posts with Thumbnails