Packing programs + dependencies into .rpm files from repos
I'm still kinda new to Linux and just learned how installing software from repositories with Yast works. However there's one thing I would like to know as well: How can I download a repository and its dependencies that aren't on the distro's installation disc to an .rpm package?
For instance, lets say I want to have a pack with the program X for openSuse 11 from X's repository. Program X however requires the dependency packets Y and Z. Y is located on my openSuse DVD while Z needs to be downloaded. In this case I would like to know how I could make a .rpm packet containing X and only dependency Z (even if this program is already installed on my system with all its dependencies).
This isn't to distribute it or anything, I'm just one of the users who don't feel safe unless they have all important programs and everything they need available offline as well, although I love the idea of being able to install stuff so easily from repos and all. It would help me very much if I could know how doing such a thing would be possible.
I heard zypper can do it, but I am not familiar with its console commands so I'd like to know what settings and commands must be used to download a package and its dependencies not on the install media in a single .rpm (or if that isn't possible each as .rpms). Thanks.
OpenSuse 12.1 64bit, KDE 4.7.2
Bookmarks