5.9.3. Replacing or renaming packages
When the upstream maintainers for one of your packages chose to rename their software (or you made a mistake naming your package), you should follow a two-step process to rename it. In the first step, change the debian/control
file to reflect the new name and to replace, provide and conflict with the obsolete package name (see the Debian Policy Manual for details). Please note that you should only add a Provides
relation if all packages depending on the obsolete package name continue to work after the renaming. Once you’ve uploaded the package and the package has moved into the archive, file a bug against ftp.debian.org
asking to remove the package with the obsolete name (see Removing packages). Do not forget to properly reassign the package’s bugs at the same time.
At other times, you may make a mistake in constructing your package and wish to replace it. The only way to do this is to increase the version number and upload a new version. The old version will be expired in the usual manner. Note that this applies to each part of your package, including the sources: if you wish to replace the upstream source tarball of your package, you will need to upload it with a different version. An easy possibility is to replace foo_1.00.orig.tar.gz
with foo_1.00+0.orig.tar.gz
or foo_1.00.orig.tar.bz2
. This restriction gives each file on the ftp site a unique name, which helps to ensure consistency across the mirror network.