[plug] Redhat/RPM dependency question
Matt Kemner
zombie at wasp.net.au
Mon Aug 20 14:23:36 WST 2001
On Mon, 20 Aug 2001, Arkem wrote:
> > this very question was discussed at the last Tuesday meeting.
> > The trick is to create your own list of which packages are on your
> > distro CD-set.
> > Try "rpm -qp --filesbypkg <dir>/*.rpm > my-list-of-rpm-files.txt"
>
> This touches something I've been wanting to do but have had no idea
> how to do under Debian. How can I tell apt to give me a list of
> installed packages? (as a text file)
dpkg --get-selections > deblist.txt
And if you want to you can copy that list to another system and run
dpkg --set-selections < deblist.txt
which will set the package selections up to be identical, so you can do
apt-get dselect-upgrade
and have the second system set up the same as the first.
Also, to do under Debian what Mike has described above, ftp the
Contents-i386.gz (or equivalent for your architecture) from your local
friendly Debian mirror and zgrep through it.
- Matt
More information about the plug
mailing list