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?
Create a subset of debian repo
debian;apt
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.