I have developed a Java program which I want to create an apt-get repository for it. So every user who wants to install my application can install it by typing "apt-get install myappname".
How can I build it?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You can do this by uploading your program to launchpad and creating PPA.
A PPA is a Personal Package Archive, and is a method of distributing software to users, without requiring developers to undergo the full process of distribution in the main ubuntu repositories.
PPAs can be used to extend the available software in ubuntu to both programs that are not otherwise available in ubuntu, as well as to allow newer versions, such as beta programs, that have not yet undergone sufficient testing to be imported into the main archive.
Quoted from Ubuntu website
There is a Launchpad PPA help file
To install your program, users will need to add the ppa to their repositories like so:
sudo apt-add-repository ppa:yourppaname
and then after syncing the package index with
apt-get update they will be able to install it with