I manage a few apps that depend on specific versions of some packages. To make sure that I always have the correct versions, I created my own Apt repository. Now, I'm concerned that some of the packages I depend on will break because the packages they depend on will be up-revved. Is there an easy way to download a package (say, tomcat6) and all of the packages it depends on so that I can add them to my private repository?
Ubuntu 10.04 Reprepro
To clarify a point that was made below, I'm looking to automate this process so that it's easily repeatable.
Right now, I'm manually running "sudo apt-cache depends [package]", then using "sudo apt-get -d install [package package2 package3 package4... package*]". I'm looking to see if there's a streamlined way of doing this before I script my own solution