We have our own internal package repository hosted on a webserver running apache.
Internal users who want to install one of these packages point these sources.list to the webserver & do a apt-get update & apt-get install packgname.
One of these packages is a package called ourpkgname_1.0.0-0_all.deb
now i have made come changes and created a new updated package called ourpkgname_1.0.1-0_all.deb.
I have no idea how to remove the original package from the webserver directory & add the new version. just deleting it at the /tmp/mirror/pool etc & copying the name package doesn't work. I am assuming there is some command which i need to run to copy & regenarate anything at the repository, but don't know how to.
Can someone help or point me to the appropriate documentation
I find reprepro a great tool for this. It makes repository creation and maintenance a piece of cake. Here's some pruned instructions from the manual:
YOURBASEDIR=/path/to/custom/repo
).mkdir -p $YOURBASEDIR/conf
).Create a text file in there (
editor $YOURBASEDIR/conf/distributions
) and add this:Add your package:
Add this line to your "/etc/apt/sources.list":
Then the usual
apt-get update && apt-get upgrade
, after which your version 1.0.1-0 is an apt-get away.This tool is quiet capable, so if you want more than this simple use-case (e.g. if you want to import your current custom repo, or if you want to add gpg signatures), go have a look at the website and/or the manpage.
Take a look at this page in the Debian Repository HOWTO
HTH
Fran
As you already have it all set up, then the steps outlined in this blog post will probably be enough to get you going in the right direction.