How to add my .deb package to the sudo apt-get install command [duplicate]

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?

3

2 Answers

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.

sudo apt install /path/to/file.deb 

or, if you are already in the correct directory,

sudo apt install ./file.deb 
2

You Might Also Like