How To Install Apt Packages Without Sudo Permissions
So installing packages on linux is normally easy unless you don't have sudo rights. This can get annoying, I have experienced this in the past and found a work around. Quite a handy one actually. Depending on how you plan to install the packages you will need a sudo password one last time. But after that, in theory, never again, to install .deb packages anyway. I created a post about this a few months ago, the steps of which are here: https://dev.to/rbevin777/installing-apt-packages-without-sudo-4dkm
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
dpkg -x deb_package.deb .
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
If you enjoyed the video don't forget to Follow!
-
1:32:49
The Quartering
5 hours agoKamala Shills PANIC, CNN Interview Predictions, Rings Of Power BOMBS, Dollar Tree Collapses
45.4K39 -
1:11:00
Russell Brand
6 hours ago“HE WASN’T ACTING ALONE!” - Dan Bongino DESTROYS SECRET SERVICE At Trump J13 Hearing - SF 441
148K304 -
1:05:27
The New American
3 hours agoNew American Daily | Abbott Says Texas Border Crisis Solved. But California is a different story.
15.8K -
53:19
Ben Shapiro
4 hours agoEp. 2037 - Defending Kam-unism
63.2K50 -
1:57:43
vivafrei
6 hours agoFrom Jan. 6 to Butler Pennsylvania & BEYOND! Live with Ivan Raiklin! Viva Frei
65.7K47 -
47:41
Standpoint with Gabe Groisman
20 hours agoEp. 44. From Teacher to Congress. US Congressional Candidate Neil Young
23.7K3 -
1:51:44
TheAlecLaceShow
5 hours agoChina’s Project to Destroy America | Pope Says “Grave Sin” To Reject Migrants | The Alec Lace Show
26.7K10 -
1:00:04
The Dan Bongino Show
6 hours agoGet Ready For Something Big Before The Election (Ep. 2319) - 08/29/2024
662K3.61K -
48:36
Steven Crowder
7 hours agoEXCLUSIVE VIDEO: The United Nations Plot to Stop Trump
298K550 -
1:11:13
Graham Allen
8 hours agoJD Vance Goes SCORCHED EARTH On Kamala + Cali Is GIVING $150K to Illegals! THEY ARE ROBBING US!!
98.3K151