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!
-
24:58
Law&Crime
6 hours ago $0.49 earnedSecond Note Leaves Disturbing Clues in New York City Killings
7.46K4 -
1:36:57
Badlands Media
21 hours agoAltered State S3 Ep. 39
31.3K7 -
2:04:07
Due Dissidence
11 hours agoCharlie Kirk's GAZA LIES, Caitlin Clark Stalker, Palantir Goes Hollywood - w/ Kyle Matovcik | TMWS
18K4 -
LIVE
I_Came_With_Fire_Podcast
12 hours agoAmerica First, Trump Threatens China, Your Friendly Neighborhood Illegal, EPA Gets a "W"
354 watching -
LIVE
Geeks + Gamers
2 hours agoGeeks+Gamers Play- MARIO KART WORLD
140 watching -
8:28:19
Dr Disrespect
11 hours ago🔴LIVE - DR DISRESPECT - BATTLEFIELD 1 - FULL GAME
153K7 -
1:39:26
Glenn Greenwald
7 hours agoStephen Miller's False Denials About Trump's Campus "Hate Speech" Codes; Sohrab Ahmari on the MAGA Splits Over Antitrust, Foreign Wars, and More | SYSTEM UPDATE #495
98.3K42 -
1:57:28
Omar Elattar
7 hours agoThe $300M CEO: "The One Skill That Made Me Rich In 15 Different Countries!"
16.8K -
LIVE
xXFadedAngelXx
3 hours ago180 HOURGLASS PULL! Wisdom of Sea and Sky (Pokemon TCG Pocket) Then some RL with Meditayte later
17 watching -
8:14
MattMorseTV
8 hours ago $0.72 earnedTrump just DROPPED the HAMMER.
20.2K22