Re: [newbie] Package list help.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 31 Jul 2004 08:18:59 -0500 Hoyt Bailey [EMAIL PROTECTED] wrote: On Saturday 31 July 2004 07:37, Hoyt Bailey wrote: On Saturday 31 July 2004 05:28, Frank wrote: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank snip rpm -qa (filename) | tee (file where you want the answer) Forgot something. rpm -qa | sort | tee (file where you want the answer). -- Regards; Hoyt Try this, It came from this list a year ago or so and I made it an alias alias lrpm='rpm -qa | sort /home/ricks/rpmlist-`date +%d%m%y_%I%M`.txt' it will add the date to the file list. HTH RickS +--+ MandrakeLinux 10.0 official - 2.6.3-15mdk-i686-up-4GB gpg --recv-keys --keyserver www.keyserver.net 0x24AABE61 +--+ You can't take it with you -- especially when crossing a state line. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBDQB8Jo/ckCSqvmERAn7LAKCOZmTb3U8IMQGxapgi0ZY8v4+LBwCeKGSp tS39Q2I/koEs7hKjVSeLQto= =5FMy -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Sunday 01 August 2004 09:38 am, RickS wrote: Try this, It came from this list a year ago or so and I made it an alias alias lrpm='rpm -qa | sort /home/ricks/rpmlist-`date +%d%m%y_%I%M`.txt' it will add the date to the file list. HTH RickS Thanks! That's a much better solution than I posted -- Tom Brinkman Corpus Christi, Texas Proud to be an American Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 1 Aug 2004 10:35:26 -0500 Tom Brinkman [EMAIL PROTECTED] wrote: On Sunday 01 August 2004 09:38 am, RickS wrote: Thanks! That's a much better solution than I posted Tom Brinkman Corpus Christi, Texas Proud to be an American Glad to help ... also I've been working on bash scripting, and also wrote this script from that alias I don't always know what all these packages actually are. So I added a sorted list of all the rpm info .. For any interested Here it is . #!/bin/bash ### # filename:rpminfo.sh # date:2004-07-26 # author: ricks ( [EMAIL PROTECTED] ) # generates list of installed rpms. Sort the results, # appending the date to a text file. # then lists info for same rpm list, to another file ### # *.txt is the list of rpms installed # *.list is the info for each of the rpms installed from list txt file### DATE=`date +%d%m%y_%I%M` FILE1=/home/ricks/backup/rpmlist-$DATE.txt FILE2=/home/ricks/backup/rpmlist-$DATE.list rpm -qa | sort $FILE1 xargs rpm -qi $FILE1 $FILE2 HTH too ... RickS +--+ MandrakeLinux 10.0 official - 2.6.3-15mdk-i686-up-4GB gpg --recv-keys --keyserver www.keyserver.net 0x24AABE61 +--+ I have often regretted my speech, never my silence. -- Publilius Syrus -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBDTAJJo/ckCSqvmERAs9DAJ0V8XuGlThBSssMRpSF7Qzqz/8dKgCfXO+x jjl5ZZ3LmEBiFWHo416980E= =l/w6 -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
Hoyt Bailey wrote: On Friday 30 July 2004 17:24, Lanman wrote: Hoyt Bailey wrote: On Friday 30 July 2004 14:30, Charlie Mahan wrote: On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; Is there a command that will provide me with a detailed package list of all installed rpms? Since doing the install on my system, I've added, updated and removed quite a few of them, and I'd like to create a repository of the packages that are currently installed. That way, I can re-install them from a local source if I have to recover from a cooker install of 10.1. I know that I have a package list from my original install, but I'm looking for an updated list. Is it possible to extract the list from the RPM database? ideas? suggestions? TIA Lanman /var/log/rpmpkgs should show you what you want. It's plain text so it may just be easier than all the grepping and diffing. GRIN Charlie Perhaps you mean '/var/cache/urpmi/rpms'? Hoyt; Thanks for the suggestion, but '/var/cache/urpmi/rpms' is where rpms are temporarily stored until urpmi is ready to install all rpms that have been selected by the user. Once all the rpms required are download to this folder, urpmi then installs from that location. What I'm actually looking for is a detailed list of the rpms which would be currently installed on a system, not every package or rpms that was ever installed on a system. Charlie suggested that I try /var/log/rpmpkgs , but that doesn't seem to be accurate since I see rpms in that list that were recently removed from the system. I'm hoping that I can build a list of the exact rpms which are currently installed and use it as a guide for creating an archive of those exact rpms. Once those rpms are archived, I can then burn a CD or DVD of those rpms and take them to friends and clients and do a very fast update to any of them, assuming that they're already running Mandrake 10.0. urpmi *rpm would do the trick once the CD or DVD had been mounted, and I could work on another system while that was going on. Since I have rpms from Charles, PLF, Contribs, etc., I'd like to have the current ones rapidly available for install on new systems as well. Isn't there supposed to be an rpms database on my system? How does urpmi keep track of what's installed? Hmmm, back to the drawing board! Lanman The reason I made the suggestion was because I couldnt find rpmpkgs. I just looked again and found 2 of them. Sorry if I caused any difficulty. No problems here Hoyt. I'm still on the trail of that file though. If you were to launch the software remover in MCC or KDE's Kpackage, you would see the list of currently-installed packages. That's the list that I'm after but I'm after the actual list. MCC's rpm remover and Kpackage both access a database or two of installed packages, and generate the list that you see inside of themselves based on that database. I just can't find the database. Once I do, I can start harassing the list about how to extract the list from that database. Fun, Huh? Lanman Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank Big or small, a challenge requires the same commitment to resolve. Registered Linux User # 324213 Hoyt Bailey wrote: On Friday 30 July 2004 18:03, Charlie Mahan wrote: On July 30, 2004 15:57:03, Hoyt Bailey wrote: On Friday 30 July 2004 14:30, Charlie Mahan wrote: On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; Is there a command that will provide me with a detailed package list of all installed rpms? Since doing the install on my system, I've added, updated and removed quite a few of them, and I'd like to create a repository of the packages that are currently installed. That way, I can re-install them from a local source if I have to recover from a cooker install of 10.1. I know that I have a package list from my original install, but I'm looking for an updated list. Is it possible to extract the list from the RPM database? ideas? suggestions? TIA Lanman /var/log/rpmpkgs should show you what you want. It's plain text so it may just be easier than all the grepping and diffing. GRIN Charlie Perhaps you mean '/var/cache/urpmi/rpms'? Or perhaps not Hoyt. That's where the packages go before they're installed but unless you use a no-clean or keep flag that directory gets emptied after all transactions are finished. The file that I posted about is where everything that has been installed is listed. Charlie Sorry I couldnt find it when I first looked but after going back I found 2. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
Em Sáb, 2004-07-31 às 07:28, Frank escreveu: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? There you are rpm -qa mypkgs.txt -- Josenildo Marques ICQ 289971493 +++ Homepage http://cyb.ezdir.net usuário Linux registrado No. 341648 ** O voto deve ser rigorosamente secreto. Só assim , afinal, o eleitor não terá vergonha de votar no seu candidato. Barão de Itararé Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Saturday 31 July 2004 04:39, Lanman wrote: Hoyt Bailey wrote: On Friday 30 July 2004 17:24, Lanman wrote: Hoyt Bailey wrote: On Friday 30 July 2004 14:30, Charlie Mahan wrote: On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; snip Lanman The reason I made the suggestion was because I couldnt find rpmpkgs. I just looked again and found 2 of them. Sorry if I caused any difficulty. No problems here Hoyt. I'm still on the trail of that file though. If you were to launch the software remover in MCC or KDE's Kpackage, you would see the list of currently-installed packages. That's the list that I'm after but I'm after the actual list. MCC's rpm remover and Kpackage both access a database or two of installed packages, and generate the list that you see inside of themselves based on that database. I just can't find the database. Once I do, I can start harassing the list about how to extract the list from that database. Fun, Huh? Lanman I know what you want and it would be nice to be able to access such a list. I did have an idea how to generate such a list but it would take hours and consume multi MB's and has some problems as well. -- Regards; Hoyt Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
Josenildo Marques wrote: Em Sáb, 2004-07-31 às 07:28, Frank escreveu: OK. A favour for a favour, ( I hope? ) # rpm -qa That's the command, now what do I add to the end of it to successfully pipe it to a text file? There you are rpm -qa mypkgs.txt So used to typing letters . .(quiet grumbling). . forgot about the other keys on this keyboard... have to 'hunt and peck' still .. back to gtypist for this old salt. Thanks Josenildo Frank Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Saturday 31 July 2004 05:28, Frank wrote: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank snip rpm -qa (filename) | tee (file where you want the answer) -- Regards; Hoyt Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Sat, 2004-07-31 at 15:37, Hoyt Bailey wrote: On Saturday 31 July 2004 05:28, Frank wrote: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank snip rpm -qa (filename) | tee (file where you want the answer) Any way to convert this to an alphabetical list? 8-) -- pm Under capitalism, man exploits man. Under communism, it's just the opposite. John Kenneth Galbraith Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
Em Sáb, 2004-07-31 às 09:54, PM escreveu: On Sat, 2004-07-31 at 15:37, Hoyt Bailey wrote: On Saturday 31 July 2004 05:28, Frank wrote: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank snip rpm -qa (filename) | tee (file where you want the answer) Any way to convert this to an alphabetical list? 8-) sort -d -- Josenildo Marques ICQ 289971493 +++ Homepage http://cyb.ezdir.net usuário Linux registrado No. 341648 ** A obra de arte, fundamentalmente, consiste numa interpretação objetivada duma impressão subjetiva. Fernando Pessoa Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
PM wrote: On Sat, 2004-07-31 at 15:37, Hoyt Bailey wrote: On Saturday 31 July 2004 05:28, Frank wrote: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank snip rpm -qa (filename) | tee (file where you want the answer) Any way to convert this to an alphabetical list? 8-) You read my mind! Lanman Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Saturday 31 July 2004 07:37, Hoyt Bailey wrote: On Saturday 31 July 2004 05:28, Frank wrote: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank snip rpm -qa (filename) | tee (file where you want the answer) Forgot something. rpm -qa | sort | tee (file where you want the answer). -- Regards; Hoyt Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
Josenildo Marques wrote: Em Sáb, 2004-07-31 às 09:54, PM escreveu: On Sat, 2004-07-31 at 15:37, Hoyt Bailey wrote: On Saturday 31 July 2004 05:28, Frank wrote: OK. A favour for a favour, ( I hope? ) # rpm -qa Thats the command, now what do I add to the end of it to successfully pipe it to a text file? Regards Frank snip rpm -qa (filename) | tee (file where you want the answer) Any way to convert this to an alphabetical list? 8-) sort -d Yup! That did the trick. Thanks Josenildo! Lanman Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Saturday 31 July 2004 04:39 am, Lanman wrote: The reason I made the suggestion was because I couldnt find rpmpkgs. I just looked again and found 2 of them. Sorry if I caused any difficulty. No problems here Hoyt. I'm still on the trail of that file though. If you were to launch the software remover in MCC or KDE's Kpackage, you would see the list of currently-installed packages. That's the list that I'm after but I'm after the actual list. MCC's rpm remover and Kpackage both access a database or two of installed packages, and generate the list that you see inside of themselves based on that database. I just can't find the database. Once I do, I can start harassing the list about how to extract the list from that database. Fun, Huh? Lanman Would this do what you want? 'rpm --rebuilddb'(as root, to make sure it's current) 'rpm -qa | grep -i mdk mkd_rpms.txt' (txt file of all currently installed Mandrake rpms) 'rpm -qa | grep -i plf plf_rpms.txt' (same for PLF) 'cat mkd_rpms.txt plf_rpms.txt all_rpms.txt' That should give you a list of all currently installed rpms. I usually do it for PLF only, so I've got a list to go by after a fresh install to replace PLF packages. If you've got others, like Charles' 'cae' rpms, just add that step into the mix. BTW I use an alias to save typing (alias frpm='rpm -qa | grep -i') so just 'frpm plf plf_rpms.txt' does the deal. -- Tom Brinkman Corpus Christi, Texas Proud to be an American Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Sat, 2004-07-31 at 18:29, Tom Brinkman wrote: 'rpm --rebuilddb'(as root, to make sure it's current) 'rpm -qa | grep -i mdk mkd_rpms.txt' (txt file of all currently installed Mandrake rpms) 'rpm -qa | grep -i plf plf_rpms.txt' (same for PLF) 'cat mkd_rpms.txt plf_rpms.txt all_rpms.txt' That should give you a list of all currently installed rpms. I usually do it for PLF only, so I've got a list to go by after a fresh install to replace PLF packages. If you've got others, like Charles' 'cae' rpms, just add that step into the mix. BTW I use an alias to save typing (alias frpm='rpm -qa | grep -i') so just 'frpm plf plf_rpms.txt' does the deal. many thanks for this, Tom. certainly one to save. -- pm ___ It is dangerous to be right when the government is wrong. Voltaire Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Saturday 31 July 2004 01:05 pm, Dennis Duffner wrote: Would this do what you want? 'rpm --rebuilddb' (as root, to make sure it's current) 'rpm -qa | grep -i mdk mkd_rpms.txt' (txt file of all currently installed Mandrake rpms) 'rpm -qa | grep -i plf plf_rpms.txt' (same for PLF) 'cat mkd_rpms.txt plf_rpms.txt all_rpms.txt' That should give you a list of all currently installed rpms. I usually do it for PLF only, so I've got a list to go by after a fresh install to replace PLF packages. If you've got others, like Charles' 'cae' rpms, just add that step into the mix. BTW I use an alias to save typing (alias frpm='rpm -qa | grep -i') so just 'frpm plf plf_rpms.txt' does the deal. Well, partner share the script with the list :) Yeah, shortly after I hit send it occurred to me that adding 'sort' would make the result more useful. or there was a more elegant way to to this chore. Maybe newbie can show 'expert' and 'cooker' a useful tool ;) -- Tom Brinkman Corpus Christi, Texas Proud to be an American Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
Now to be really helpful and thanked, it would be great to see the whole script COMPLETE WITH comments so that some of us slower newbies might actually get to learn something. ( NO sarcasm intended - I just couldn't find the elegant way on a Sunday.) Regards SnapafunFrank Big or small, a challenge requires the same commitment to resolve. Registered Linux User # 324213 Tom Brinkman wrote: On Saturday 31 July 2004 01:05 pm, Dennis Duffner wrote: Would this do what you want? 'rpm --rebuilddb'(as root, to make sure it's current) 'rpm -qa | grep -i mdk mkd_rpms.txt' (txt file of all currently installed Mandrake rpms) 'rpm -qa | grep -i plf plf_rpms.txt' (same for PLF) 'cat mkd_rpms.txt plf_rpms.txt all_rpms.txt' That should give you a list of all currently installed rpms. I usually do it for PLF only, so I've got a list to go by after a fresh install to replace PLF packages. If you've got others, like Charles' 'cae' rpms, just add that step into the mix. BTW I use an alias to save typing (alias frpm='rpm -qa | grep -i') so just 'frpm plf plf_rpms.txt' does the deal. Well, partner share the script with the list :) Yeah, shortly after I hit send it occurred to me that adding 'sort' would make the result more useful. or there was a more elegant way to to this chore. Maybe newbie can show 'expert' and 'cooker' a useful tool ;) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; Is there a command that will provide me with a detailed package list of all installed rpms? Since doing the install on my system, I've added, updated and removed quite a few of them, and I'd like to create a repository of the packages that are currently installed. That way, I can re-install them from a local source if I have to recover from a cooker install of 10.1. I know that I have a package list from my original install, but I'm looking for an updated list. Is it possible to extract the list from the RPM database? ideas? suggestions? TIA Lanman /var/log/rpmpkgs should show you what you want. It's plain text so it may just be easier than all the grepping and diffing. GRIN Charlie - -- Edmonton,AB,Canada User #244963 at http://counter.li.org Mandrakelinux release 10.1 (Alpha 1) for i586 kernel 2.6.8-0.rc2.2mdk 13:29:01 up 12:44, 1 user, load average: 0.13, 0.13, 0.13 Progress might have been all right once, but it's gone on too long. -- Ogden Nash -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBCqHOZqvqlrLPr5YRAu3pAJ97BpA703nNZT0R4zF8Gac4Mjg0NACdFbcO k5/2DGUhN9srZagSyRYYWR8= =Wa8j -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Friday 30 July 2004 14:30, Charlie Mahan wrote: On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; Is there a command that will provide me with a detailed package list of all installed rpms? Since doing the install on my system, I've added, updated and removed quite a few of them, and I'd like to create a repository of the packages that are currently installed. That way, I can re-install them from a local source if I have to recover from a cooker install of 10.1. I know that I have a package list from my original install, but I'm looking for an updated list. Is it possible to extract the list from the RPM database? ideas? suggestions? TIA Lanman /var/log/rpmpkgs should show you what you want. It's plain text so it may just be easier than all the grepping and diffing. GRIN Charlie Perhaps you mean '/var/cache/urpmi/rpms'? -- Regards; Hoyt Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
Hoyt Bailey wrote: On Friday 30 July 2004 14:30, Charlie Mahan wrote: On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; Is there a command that will provide me with a detailed package list of all installed rpms? Since doing the install on my system, I've added, updated and removed quite a few of them, and I'd like to create a repository of the packages that are currently installed. That way, I can re-install them from a local source if I have to recover from a cooker install of 10.1. I know that I have a package list from my original install, but I'm looking for an updated list. Is it possible to extract the list from the RPM database? ideas? suggestions? TIA Lanman /var/log/rpmpkgs should show you what you want. It's plain text so it may just be easier than all the grepping and diffing. GRIN Charlie Perhaps you mean '/var/cache/urpmi/rpms'? Hoyt; Thanks for the suggestion, but '/var/cache/urpmi/rpms' is where rpms are temporarily stored until urpmi is ready to install all rpms that have been selected by the user. Once all the rpms required are download to this folder, urpmi then installs from that location. What I'm actually looking for is a detailed list of the rpms which would be currently installed on a system, not every package or rpms that was ever installed on a system. Charlie suggested that I try /var/log/rpmpkgs , but that doesn't seem to be accurate since I see rpms in that list that were recently removed from the system. I'm hoping that I can build a list of the exact rpms which are currently installed and use it as a guide for creating an archive of those exact rpms. Once those rpms are archived, I can then burn a CD or DVD of those rpms and take them to friends and clients and do a very fast update to any of them, assuming that they're already running Mandrake 10.0. urpmi *rpm would do the trick once the CD or DVD had been mounted, and I could work on another system while that was going on. Since I have rpms from Charles, PLF, Contribs, etc., I'd like to have the current ones rapidly available for install on new systems as well. Isn't there supposed to be an rpms database on my system? How does urpmi keep track of what's installed? Hmmm, back to the drawing board! Lanman Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On July 30, 2004 15:57:03, Hoyt Bailey wrote: On Friday 30 July 2004 14:30, Charlie Mahan wrote: On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; Is there a command that will provide me with a detailed package list of all installed rpms? Since doing the install on my system, I've added, updated and removed quite a few of them, and I'd like to create a repository of the packages that are currently installed. That way, I can re-install them from a local source if I have to recover from a cooker install of 10.1. I know that I have a package list from my original install, but I'm looking for an updated list. Is it possible to extract the list from the RPM database? ideas? suggestions? TIA Lanman /var/log/rpmpkgs should show you what you want. It's plain text so it may just be easier than all the grepping and diffing. GRIN Charlie Perhaps you mean '/var/cache/urpmi/rpms'? Or perhaps not Hoyt. That's where the packages go before they're installed but unless you use a no-clean or keep flag that directory gets emptied after all transactions are finished. The file that I posted about is where everything that has been installed is listed. Charlie - -- Edmonton,AB,Canada User #244963 at http://counter.li.org Mandrakelinux release 10.1 (Alpha 1) for i586 kernel 2.6.8-0.rc2.2mdk 17:01:08 up 16:16, 1 user, load average: 0.15, 0.17, 0.17 Sweater, n.: A garment worn by a child when its mother feels chilly. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBCtOyZqvqlrLPr5YRAveuAJ9AlHnTZJsKSa9/N5sx53edfEFkYgCeLJhs dzWtCkf66HIF5+i6rHAPWko= =N+Vn -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On July 30, 2004 16:24:04, Lanman wrote: Hoyt; Thanks for the suggestion, but '/var/cache/urpmi/rpms' is where rpms are temporarily stored until urpmi is ready to install all rpms that have been selected by the user. Once all the rpms required are download to this folder, urpmi then installs from that location. What I'm actually looking for is a detailed list of the rpms which would be currently installed on a system, not every package or rpms that was ever installed on a system. Charlie suggested that I try /var/log/rpmpkgs , but that doesn't seem to be accurate since I see rpms in that list that were recently removed from the system. I'm hoping that I can build a list of the exact rpms which are currently installed and use it as a guide for creating an archive of those exact rpms. Once those rpms are archived, I can then burn a CD or DVD of those rpms and take them to friends and clients and do a very fast update to any of them, assuming that they're already running Mandrake 10.0. urpmi *rpm would do the trick once the CD or DVD had been mounted, and I could work on another system while that was going on. Since I have rpms from Charles, PLF, Contribs, etc., I'd like to have the current ones rapidly available for install on new systems as well. Isn't there supposed to be an rpms database on my system? How does urpmi keep track of what's installed? Hmmm, back to the drawing board! Lanman That file holds the changes made to the rpm database by updating, adding, and removing packages. I thought that's what you were after, sorry. The only other file I can think of that might hold relevant data would be the urpmi.log, but once again I think that one holds information all the way back to first install. In the /root directory there's a drakx sub directory that holds an image file used for replaying the install. Is that the one you mean? I'll shut up now. Charlie - -- Edmonton,AB,Canada User #244963 at http://counter.li.org Mandrakelinux release 10.1 (Alpha 1) for i586 kernel 2.6.8-0.rc2.2mdk 17:03:36 up 16:19, 1 user, load average: 0.01, 0.10, 0.14 Force it!!! If it breaks, well, it wasn't working anyway... No, don't force it, get a bigger hammer. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBCtX6ZqvqlrLPr5YRAoP6AKCR+uQAP5BFoCtbPMe7aodAqK1ltACeNSqQ 8oR2Qw1a9WhhgVmRuD1qeDQ= =IEnn -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Package list help.
On Friday 30 July 2004 17:24, Lanman wrote: Hoyt Bailey wrote: On Friday 30 July 2004 14:30, Charlie Mahan wrote: On July 30, 2004 12:44:12, Lanman wrote: To: Our Gang; Is there a command that will provide me with a detailed package list of all installed rpms? Since doing the install on my system, I've added, updated and removed quite a few of them, and I'd like to create a repository of the packages that are currently installed. That way, I can re-install them from a local source if I have to recover from a cooker install of 10.1. I know that I have a package list from my original install, but I'm looking for an updated list. Is it possible to extract the list from the RPM database? ideas? suggestions? TIA Lanman /var/log/rpmpkgs should show you what you want. It's plain text so it may just be easier than all the grepping and diffing. GRIN Charlie Perhaps you mean '/var/cache/urpmi/rpms'? Hoyt; Thanks for the suggestion, but '/var/cache/urpmi/rpms' is where rpms are temporarily stored until urpmi is ready to install all rpms that have been selected by the user. Once all the rpms required are download to this folder, urpmi then installs from that location. What I'm actually looking for is a detailed list of the rpms which would be currently installed on a system, not every package or rpms that was ever installed on a system. Charlie suggested that I try /var/log/rpmpkgs , but that doesn't seem to be accurate since I see rpms in that list that were recently removed from the system. I'm hoping that I can build a list of the exact rpms which are currently installed and use it as a guide for creating an archive of those exact rpms. Once those rpms are archived, I can then burn a CD or DVD of those rpms and take them to friends and clients and do a very fast update to any of them, assuming that they're already running Mandrake 10.0. urpmi *rpm would do the trick once the CD or DVD had been mounted, and I could work on another system while that was going on. Since I have rpms from Charles, PLF, Contribs, etc., I'd like to have the current ones rapidly available for install on new systems as well. Isn't there supposed to be an rpms database on my system? How does urpmi keep track of what's installed? Hmmm, back to the drawing board! Lanman The reason I made the suggestion was because I couldnt find rpmpkgs. I just looked again and found 2 of them. Sorry if I caused any difficulty. -- Regards; Hoyt Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com