Re: [expert] make an rpm list on disk
On Wed, 2002-11-20 at 01:32, Donna and Matthew Persico wrote: Turns out that after I wrote, I found the AutoInst disk I made about two installs ago. Imagine my surprise when I opened it up and discovered that it is nothing more than a PERL SCRIPT It's just an array of rpms in no discernible order. Soo, I simply did rpm -qa | perl -ane '$F[0]=~s/-[0-9].*//;print $F[0]\n | sort -u foobar and then slapped the whole mess into the auto_inst.cfg file, taking care to remove the few rpms that were not on the installation disk. Touchdown, ballgame over. Well, not quite. After I did that, I took the machine apart and started transplanting the pieces into the newer machine only to discover that the old machine had an AGP1 video card and the new machine is an AGP2/4. So, the port is on hold until I can buy a new video card tomorrow. Thanks for your assistance. -- Matthew O. Persico You're welcome, and I appreciate greatly the command line above! It will be handy in future installs I am sure. :) l8r, --LX -- °°° Kernel 2.4.18-6mdk Mandrake Linux 8.2 Enlightenment 0.16.5-11mdkEvolution 1.0.2-5mdk Registered Linux User #268899 http://counter.li.org/ °°° Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] make an rpm list on disk
On 22 Nov 2002 11:33:02 -0500, Lyvim Xaphir wrote: On Wed, 2002-11-20 at 01:32, Donna and Matthew Persico wrote: Turns out that after I wrote, I found the AutoInst disk I made about two installs ago. Imagine my surprise when I opened it up and discovered that it is nothing more than a PERL SCRIPT It's just an array of rpms in no discernible order. Soo, I simply did rpm -qa | perl -ane '$F[0]=~s/-[0-9].*//;print $F[0]\n | sort -u foobar and then slapped the whole mess into the auto_inst.cfg file, taking care to remove the few rpms that were not on the installation disk. Touchdown, ballgame over. Well, not quite. After I did that, I took the machine apart and started transplanting the pieces into the newer machine only to discover that the old machine had an AGP1 video card and the new machine is an AGP2/4. So, the port is on hold until I can buy a new video card tomorrow. Thanks for your assistance. -- Matthew O. Persico You're welcome, and I appreciate greatly the command line above! It will be handy in future installs I am sure. :) Well if you think THAT was handy, how about a version that spits out the correct perl in one shot, no editing needed: rpm -qa | perl -ane 'BEGIN{print \$o = { \default_packages\ = [\n;} END{print ]};}$F[0]=~s/-[0-9].*//;print \$F[0]\,\n' auto_inst.cfg :-) -- Matthew O. Persico Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] make an rpm list on disk
On Fri, 2002-11-22 at 20:53, Matthew O. Persico wrote: You're welcome, and I appreciate greatly the command line above! It will be handy in future installs I am sure. :) Well if you think THAT was handy, how about a version that spits out the correct perl in one shot, no editing needed: rpm -qa | perl -ane 'BEGIN{print \$o = { \default_packages\ = [\n;} END{print ]};}$F[0]=~s/-[0-9].*//;print \$F[0]\,\n' auto_inst.cfg :-) -- Matthew O. Persico Matthew...you da MAN! :) --LX -- °°° Kernel 2.4.18-6mdk Mandrake Linux 8.2 Enlightenment 0.16.5-11mdkEvolution 1.0.2-5mdk Registered Linux User #268899 http://counter.li.org/ °°° Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] make an rpm list on disk
On 20 Nov 2002 00:23:16 -0500, Lyvim Xaphir [EMAIL PROTECTED]said: On Tue, 2002-11-19 at 21:33, Brian Parish wrote: On Wed, 2002-11-20 at 12:47, Matthew O. Persico wrote: I am transplanting my cdrom, video card and hard disk from a dual CPU PII 266 box to a single CPU PIV 1.7GHz box. I am betting that I can simply choose the non-smp kernel when I boot up to get me going. If I lose the bet, I am going to have to re-install. I thought there was a way to put the list of RPMs on a disk so that when you re-install, you don't have to slog through all the menus to chose what you want. Does anyone know the command to make the file and how to invoke it during the install? Much obliged. -- Matthew Fire up the Control Center and look under Boot. You'll find an Auto Install icon there. HTH Brian Brian is correct. But after you create the disk there is more that you can do. If you do a directory of the disk you will see several files, but the one you are really interested in is auto_inst.cfg. This is the file that contains the names of ALL the rpms that were installed in your system at install time. If you pull the file into an editor you will see them. With this disk, you can start a new install of a newer version of Mandrake (such as 9.0) and then when you get to the package selection part, you unselect everything and load the rpm package names from the floppy with the auto_inst file. (using the load from floppy option) The rpm names in that file are not version specific, therefore all newer versions of the rpms will be pulled into the install routine. Then the only thing to do is to peruse the flat list of the 9.0 packages and select what might be new and interesting that wasn't in the 8.2 distro. The point is that even if auto_inst.cfg was created under 8.2, it will still work with 9.0. (not the entire install disk, just auto_inst.cfg) This allows you to save yourself from reselecting everything whenever you do a move from an older distro to a newer one (Mandrake, that is.) Just use the floppy load option in the package selection portion of the Mandrake installer. Turns out that after I wrote, I found the AutoInst disk I made about two installs ago. Imagine my surprise when I opened it up and discovered that it is nothing more than a PERL SCRIPT It's just an array of rpms in no discernible order. Soo, I simply did rpm -qa | perl -ane '$F[0]=~s/-[0-9].*//;print $F[0]\n | sort -u foobar and then slapped the whole mess into the auto_inst.cfg file, taking care to remove the few rpms that were not on the installation disk. Touchdown, ballgame over. Well, not quite. After I did that, I took the machine apart and started transplanting the pieces into the newer machine only to discover that the old machine had an AGP1 video card and the new machine is an AGP2/4. So, the port is on hold until I can buy a new video card tomorrow. Thanks for your assistance. -- Matthew O. Persico Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] make an rpm list on disk
On Wed, 20 Nov 2002 16:03:18 +1100, Ron Stodden [EMAIL PROTECTED]said: Matthew O. Persico wrote: I am transplanting my cdrom, video card and hard disk from a dual CPU PII 266 box to a single CPU PIV 1.7GHz box. I am betting that I can simply choose the non-smp kernel when I boot up to get me going. If I lose the bet, I am going to have to re-install. I thought there was a way to put the list of RPMs on a disk so that when you re-install, you don't have to slog through all the menus to chose what you want. Does anyone know the command to make the file and how to invoke it during the install? You don't really provide enough information. Simplest way is to borrow the hard disk from the source machine and put it on the new machine for the following exercise: Not necessary. I'm not borrowing the disk, I'm moving it. Period. The old machine is going out to pasture. After I drop the disk in the new machine, I will do the re-install, taking care NOT to format any partitions other than / /usr /var /tmp and swap. I have since figured out that auto_inst.cfg is the file I need to restore the rpms as previously built. See previous note in this thread. Thanks -- Matthew O. Persico Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] make an rpm list on disk
On Wed, 2002-11-20 at 12:47, Matthew O. Persico wrote: I am transplanting my cdrom, video card and hard disk from a dual CPU PII 266 box to a single CPU PIV 1.7GHz box. I am betting that I can simply choose the non-smp kernel when I boot up to get me going. If I lose the bet, I am going to have to re-install. I thought there was a way to put the list of RPMs on a disk so that when you re-install, you don't have to slog through all the menus to chose what you want. Does anyone know the command to make the file and how to invoke it during the install? Much obliged. -- Matthew Fire up the Control Center and look under Boot. You'll find an Auto Install icon there. HTH Brian Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] make an rpm list on disk
Matthew O. Persico wrote: I am transplanting my cdrom, video card and hard disk from a dual CPU PII 266 box to a single CPU PIV 1.7GHz box. I am betting that I can simply choose the non-smp kernel when I boot up to get me going. If I lose the bet, I am going to have to re-install. I thought there was a way to put the list of RPMs on a disk so that when you re-install, you don't have to slog through all the menus to chose what you want. Does anyone know the command to make the file and how to invoke it during the install? You don't really provide enough information. Simplest way is to borrow the hard disk from the source machine and put it on the new machine for the following exercise: 1. Use Partition Magic to copy the Linux partition to the same Linux partition name on the new machine. 2. If you copy to another partition, all you need to change on the new machine is all the mentions of the old partition in /etc/fstab and /etc/lilo.conf, then as root run new lilo. 2 may require you to make a temporay new linux minimum-size partition, or there may be enough from CD1's rescue mode to do the job. 3. Return the source hard disk. -- Ron. [Melbourne, Australia] troels... now updated to use ftp.sunet.se server. See: http://members.optusnet.com.au/ronst/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] make an rpm list on disk
On Tue, 2002-11-19 at 21:33, Brian Parish wrote: On Wed, 2002-11-20 at 12:47, Matthew O. Persico wrote: I am transplanting my cdrom, video card and hard disk from a dual CPU PII 266 box to a single CPU PIV 1.7GHz box. I am betting that I can simply choose the non-smp kernel when I boot up to get me going. If I lose the bet, I am going to have to re-install. I thought there was a way to put the list of RPMs on a disk so that when you re-install, you don't have to slog through all the menus to chose what you want. Does anyone know the command to make the file and how to invoke it during the install? Much obliged. -- Matthew Fire up the Control Center and look under Boot. You'll find an Auto Install icon there. HTH Brian Brian is correct. But after you create the disk there is more that you can do. If you do a directory of the disk you will see several files, but the one you are really interested in is auto_inst.cfg. This is the file that contains the names of ALL the rpms that were installed in your system at install time. If you pull the file into an editor you will see them. With this disk, you can start a new install of a newer version of Mandrake (such as 9.0) and then when you get to the package selection part, you unselect everything and load the rpm package names from the floppy with the auto_inst file. (using the load from floppy option) The rpm names in that file are not version specific, therefore all newer versions of the rpms will be pulled into the install routine. Then the only thing to do is to peruse the flat list of the 9.0 packages and select what might be new and interesting that wasn't in the 8.2 distro. The point is that even if auto_inst.cfg was created under 8.2, it will still work with 9.0. (not the entire install disk, just auto_inst.cfg) This allows you to save yourself from reselecting everything whenever you do a move from an older distro to a newer one (Mandrake, that is.) Just use the floppy load option in the package selection portion of the Mandrake installer. --LX °°° Kernel 2.4.18-6mdk Mandrake Linux 8.2 Enlightenment 0.16.5-11mdkEvolution 1.0.2-5mdk Registered Linux User #268899 http://counter.li.org/ °°° Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com