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!
-
1:49:21
Film Threat
5 hours agoBEST AND WORST OF 2024 + SQUID GAME SEASON 2 | Film Threat Livecast
30.9K1 -
1:06:04
The Big Mig™
19 hours agoGlobal Finance Forum Powered By Genesis Gold Group
26.9K2 -
34:38
Tudor Dixon
4 hours agoThe Changing Landscape Between Tech and Politics with Mike Benz | The Tudor Dixon Podcast
19.6K1 -
2:23:58
Matt Kohrs
14 hours agoRumble's Stock Is EXPLODING!!! || The MK Show
76.4K6 -
1:57:47
LFA TV
17 hours agoBOMBSHELL FINAL REPORT: BIDEN ADMIN SUPPRESSED WUHAN LAB LEAK | LIVE FROM AMERICA 12.27.24 11am EST
43.5K6 -
43:07
Grant Stinchfield
3 hours ago $4.64 earnedWe Built it... China Controls it... Trump Will Take it Back!
21.3K7 -
35:05
Rethinking the Dollar
3 hours agoTime to Pay the Piper! Debt Refinance Crisis Coming in 2025
20.4K3 -
52:34
PMG
17 hours ago $4.23 earnedHannah Faulkner and Steve Friend | EXPOSE THE FBI CORRUPTION - KASH PATEL
16.1K8 -
2:58:58
Wendy Bell Radio
9 hours agoOn Day One
89.8K78 -
1:59:27
Jeff Ahern
6 hours ago $3.99 earnedFriday Freak out with Jeff Ahern (6am Pacific)
31.2K1