How To Install Deb Packages Without Sudo Permissions

preview_player
Показать описание

Also they are outlined below. If you want there is also the code for a python script to do all these manual steps automatically as well so be sure to check that out!

Step 1: Install apt-rdepends

We need this package to get the other apt package dependancies.
sudo apt-get install apt-rdepends -y
Step 2: Download the .deb pacakge

So now you should navigate to the folder you wish to install these packages under. Once you do this you can now download the pakcage and dependencies. In this example I use cflow as the package I wish to install. Replace this with whatever you wish.
apt-get download $(apt-rdepends cflow|grep -v "^ ")
Step 3: Extract the .deb packages.

You will need to extract each deb package individually which is annoying but this can be automated. You can extract the debian packages in the current directory using the following
Step 4: Adding the Packages to the PATH

This can be done by adding the by updating the .profile file
export PATH="$PATH:$HOME/path/to/executable"

Step 5: Refresh the .profile File

When we update the .profile file with the PATH changes, this needs to be then refreshed. This can be done by running the following
source .profile

Twitter: @bevybizzle
If you enjoyed the video don't forget to SUBSCRIBE!
Рекомендации по теме