Premium Only Content
![How To Install Apt Packages Without Sudo Permissions](https://1a-1791.com/video/s8/1/r/R/Y/w/rRYwp.qR4e-small-How-To-Install-Apt-Packages.jpg)
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:29:04
Glenn Greenwald
13 hours agoTrump, Vance & Musk Announce a Radically New Foreign Policy Framework; Prof. Norman Finkelstein on Gaza's Future, the Cease-Fire Deal & Fallout from the U.S./Israeli War | SYSTEM UPDATE #407
151K94 -
4:15:00
Nerdrotic
15 hours ago $49.21 earnedCaptain Falcon America REVIEW, Disney Ending DEI? Rings of Power RETURNS | Friday Night Tights #341
214K36 -
9:34:03
FusedAegisTV
22 hours agoMario Galaxy, Batman, Real Talk/Politics, & MORE - V-Day 💗 Friday Variety Stream!
60.2K1 -
1:10:49
Vigilant News Network
11 hours agoRFK Jr. Drops a Stunning Announcement | The Daily Dose
79.9K42 -
49:49
Candace Show Podcast
14 hours agoEXCLUSIVE: Blake & Ryan’s Desperate Legal Strategy Exposed! | Candace Ep 147
193K133 -
1:32:20
2 MIKES LIVE
11 hours ago2 MIKES LIVE #180 with guest Kyle Rittenhouse!
54.8K4 -
9:40
Tactical Advisor
16 hours agoBest Home Defense Shotgun Build | Genesis Gen 12
48.7K4 -
56:44
VSiNLive
13 hours ago $4.29 earnedFollow the Money with Mitch Moss & Pauly Howard | Hour 1
71.8K1 -
1:05:48
The Amber May Show
17 hours ago $3.61 earnedBig Balls | You Know It's Bad When Legacy Media Reports On Big Balls | Sam Anthony
41.1K7 -
LIVE
SoniCentric
1 day agoEnjoy a COZY Valentine's Day Escape to Paris with the BEST blend of Romantic Music
140 watching