I have a problem. I have a .deb file for my ubuntu app, but I want users to be able to install it using the sudo apt-get install command. How would I make it so that anyone can install my .deb file with sudo apt-get install?
Asked
Active
Viewed 1,445 times
2 Answers
3
You could read about 'personal package archives' (PPA). That's one method to share a debian packaged program with many other users. To install it then they need to do nothing but this:
sudo add-apt-repository ppa:YOUR-LAUNCHPAD-USERNAME/PPA-NAME
sudo apt-get update
sudo apt-get install SOFTWARE-NAME
Those PPAs are hosted on Launchpad so there website might be a good place to start at.
1
sudo apt install /path/to/file.deb
or, if you are already in the correct directory,
sudo apt install ./file.deb

user535733
- 62,253
-
Odd I always get Note, selecting 'on_repo_pkg' instead of './pkg.deb'. This was added to
apt
v 1.1 – Pablo Bianchi Jan 15 '21 at 07:30 -
sudo
or elevated privileges. You can package programs to install to $HOME or the user directory that won't requiresudo
, but there will be limitations to this (available only to user who installed it, depending on your UI in use, it may not be seen by all menu systems etc; many of which can be worked around - but the work arounds will be DE more dependent than system directories). – guiverc Jan 14 '21 at 23:39