If it is possible to refer to a former thread's reply, here it is:
Listing of packages installed on system
I know that the command to get the list of all the packages installed on your system is
But the thing is when it shows me the list of packages it marks soem of them 'rc' or 'pi' i.e. means those packages are not there on my system..right? So if those packages are not there why does it still shows them in the list.
Is there any command by which I can get only the packages that are installed on my system?
Here is the output of the dpkg -l command:
The above thread is by kushalkoolwal of 04-28-06.
The first answer to that thread is the following for which I need some clarification, as it is exactly what I need:
I've used dpkg --get-selections > selections.txt to output everything installed on my system to a text file.
The thing I like about this command is that I can output it to a text file and then install all the same programs on a different machine with
dpkg --set-selections < selections.txt
Then I just have to copy over the appropriate config files from /etc and I'm all set with a cloned system, even if the hardware is different.
By pljvaldez Senior Member
Registered: Dec 2005
Location: Pasco, WA
Distribution: Debian Etch and AMD64 Sid
Here are my questions in case they might be answered by somebody:
a.I did "dpkg --get-selections >selections.txt" and all my installed packages appeared in a file as "selections.txt " which I discovered in
/home/jv, jv being the user i.e. me.
As I understand, with my scant computer knowledge, this "selections.txt " document I must transfer to the new to be cloned distro.That means I will have to copy it somewhere so that the distro will be able to access it and install all the programs therein. Do I send/copy it to /home/jv as well? jv is the user at the new distro as well.
b. "Then I just have to copy over the appropriate config files from /etc and I'm all set with a cloned system, even if the hardware is different."
What are the "appropriate conf files "? I found one that might be the one reffered to, in /etc/dpkg/dpkg.conf. It reads thus:
# dpkg configuration file
# This file can contain default options for dpkg. All command-line
# options are allowed. Values can be specified by putting them after
# the option, separated by whitespace and/or an `=' sign.
# Log status changes and actions to a file.
Sorry but I am quite lost.
You see I want to change my mobo and since from my experience I do not expect to be able to boot any more I thought of getting a new hhd, copying the /home partition to the new hdd, reinstalling the distro to its /root partition and transferring the programs, as I do not remember all the extra applications I have in the meantime installed.The distro works perfectly,
it is 64Studio 64bit, based on debian etch. The only reason is to make the system quiter by reducing the fan speed, presently at about 1500rpm.,
to about 750rpm using an Asus mobo with Q-fan.
Thank you for your attention,