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!
-
41:36
MattMorseTV
2 hours ago $4.46 earned🔴Portland just made a BIG MISTAKE.🔴
8.7K30 -
LIVE
LFA TV
22 hours agoLIVE & BREAKING NEWS! | FRIDAY 10/3/25
601 watching -
4:07:27
Nerdrotic
6 hours ago $6.83 earnedHollywood is TARIFFied, James Gunn Attacks Fans, Bill Burqa, RoP is Doomed | Friday Night Tights 374
47.9K6 -
LIVE
Eternal_Spartan
10 hours ago🟢 Eternal Spartan Plays Destiny 2 | The Best PVP/PVE Action!| USMC Veteran
41 watching -
LIVE
Jorba4
1 hour ago🔴Live-Jorba4- Borderlands 4
15 watching -
1:06:26
BonginoReport
5 hours agoPortland Protesters Plan Nude Bike Ride To Own Trump - Nightly Scroll w/ Hayley Caronia (Ep.148)
73.8K74 -
1:30:43
The Mike Schwartz Show
3 hours agoTHE MIKE SCHWARTZ SHOW Evening Edtion 10-03-2025
13.4K5 -
1:47:22
iCkEdMeL
3 hours ago $2.29 earnedFlag Burning, Antifa & Arrest: Journalist Nick Sortor Detained in Portland Chaos
19.2K9 -
1:39:27
Roseanne Barr
6 hours agoThe Dragon’s Prophecy W/ Dinesh D’Souza | The Roseanne Barr Podcast #118
124K53 -
28:24
Michael Franzese
5 hours agoHow Jewish Mafia Influenced American Organized Crime
47.6K26