Premium Only Content
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!
-
11:32
Silver Dragons
2 hours agoIs This GAME OVER for SILVER?
4.69K -
9:04
Gun Owners Of America
1 day agoTrump Promises To "Rip Up" ATF Rules
3.01K11 -
1:49:13
vivafrei
6 hours agoThe Absolute State of Canada - Artur Pawlowski Interview AND MORE CANADIAN MADNESS! Viva Frei
86.8K4 -
1:57:57
The Charlie Kirk Show
3 hours agoFulfill The Mandate | Paoletta, Schilling, Schlicther | 11.11.24
175K72 -
1:23:15
The New American
2 hours agoTrump to End Censorship | The New American Daily
13.1K -
1:09:22
The Kevin Trudeau Show
5 hours agoThe Kevin Trudeau Show | Ep. 64 | LIVE at 1 PM CT
32.9K1 -
1:03:34
Grant Stinchfield
3 hours ago $16.22 earnedIs There a Potential Coup Going on Inside the Pentagon? The Shadow State is Real!
50K26 -
1:51:54
Nerdrotic
5 hours ago $9.88 earnedNerdrotic Nooner 442
70.1K7 -
1:01:08
The Dan Bongino Show
6 hours agoTrump Makes His First Big Moves (Ep. 2368) - 11/11/2024
894K2.47K -
1:57:22
Steven Crowder
7 hours agoThe 4B Movement: How Trump is Saving the World from Liberal Women
621K108