0

I've built a Debian package from source with dpkg-buildpackage according to helpful instructions found here to fix an issue that bugged me. I used dch -n to increase the version by a non-maintainer sub version to have my custom package "beat" the standard one. Then I installed the produced .deb packages from my file system using apt-get install. Everything worked fine!

But is there also a way to restore the original package from the official Debian repository after having tested my changes?

I don't really want to apt-get remove/purge ... as this is about a library and half the system depends on that.

Can I "downgrade" the package to the official one without removing every package that depends on it?

1 Answer 1

3

Yes, you can specify a release to use and apt will downgrade the package accordingly:

sudo apt install foo/stable

will downgrade (or upgrade) the foo package to the release currently available in the stable distribution. You can replace stable with whichever release is appropriate.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.