How do I install a package outside of the APT database? [duplicate]
Sophia Terry
I am new to Linux, so this might sound like a simple question, but how do I install a package outside of the APT database? I am trying to install the following package:
Any help will be appreciated. Thank you!
31 Answer
Let's assume you are currently running Huriste Hippo (21.04).
Expand "The Hirsute Hippo (current stable release)" section.
You will see a list of Package files.
Select and download the the
*.deb(*.ddeb) files for your architecture.For AMD64, you would pick:
- pdb2pqr-dbgsym_2.1.1+dfsg-7build1_amd64.ddeb - Debug symbols for pdb2pqr. Note, this is probably optional, unless you need to debug the software.
- pdb2pqr_2.1.1+dfsg-7build1_amd64.deb - Preparation of protein structures for electrostatics calculations
- pdb2pqr-doc_2.1.1+dfsg-7build1_all.deb - Example files accompanying pdb2pqr
Open a terminal and execute the following commands.
Let's assume you downloaded these files to your Downloads directory.
cd ~/DownloadsAdd the universe repository so Ubuntu can download other dependent packages you may need. Also this is needed for the
gdebicommand below.sudo apt-add-repository universe sudo apt updateInstall
gdebi, a tool to allow you to install*.debfiles and automatically install their dependencies.sudo apt install gdebi-coreInstall your downloaded packages.
sudo gdebi pdb2pqr_2.1.1+dfsg-7build1_amd64.deb sudo gdebi pdb2pqr-doc_2.1.1+dfsg-7build1_all.deb sudo gdebi pdb2pqr-dbgsym_2.1.1+dfsg-7build1_amd64.ddeb