2

I need to create a subset of an existing repository that contains certain packages. The dependencies of these packages need to be satisfied. Now, I know how to create an Apt repository from a given set of .deb files using dpkg-scanpackages, but the process doesn't satisfy dependencies. I can do it by hand, but it's tedious and there's chance something gets missed.

Is there a more automated way to satisfy dependencies in a repository?

2
  • Maybe helpful: askubuntu.com/questions/80655/… – jofel Apr 27 '15 at 8:31
  • dpkg -I prints all information about package, not just a list of dependencies. Also that list includes things such as version numbers and logical operations, so it's not easily scriptable. – Michael Ivko Apr 27 '15 at 9:57
2

You might be interested in aptly - it is a tool to ease the problems of debian repository management. Its repo import functionality imports packages and its dependencies and sounds exactly like the tool you are looking for.

As far as I understand documentation (did not have a use-case for aptly yet unfortunately), it is possible you have to mirror the repository you want to create a subset of though.

1
  • You don't have to mirror the whole repository. aptly mirror create -filter=<pkgname> -filter-with-deps ... does the trick. – Michael Ivko May 19 '15 at 6:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.