Skip to content

Instantly share code, notes, and snippets.

@chrisledet
Last active August 6, 2019 15:45
Show Gist options
  • Save chrisledet/963a9e77711d82d033f0600a79ae6fd6 to your computer and use it in GitHub Desktop.
Save chrisledet/963a9e77711d82d033f0600a79ae6fd6 to your computer and use it in GitHub Desktop.

Update apt index

apt-get update

Extract package into directory

dpkg-deb -x mypackage.deb dstDir

Find installed packages

dpkg -l <pkg>

Install specific package + version

apt-get install pkg=version

View package contents

dpkg-deb -c <pkg>

Install local package

apt install ./path

Apt cache directory

ls -l /var/cache/apt/archives/

Clean cache directory

apt-get clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment