I would like to repack SuSE 9.2 with some custom rpms, i think i'm in the right path, but i'm stuck with the creation of ARCHIVES.gz, i now it has the output of rpm -qp -i -l -v for every packet, but can't figure out how to get the file with the same format (the header that marks the beginning of every packet can be done with a script), but have no idea how to print the filename in every line of the output. It looks like this file isn't really necesary, but i would like to have all the rpms descriptions available qhen using yast. Another question, how should i create the cd isos to make it bootable?, i think cd1 and cd2 use different boot specifications Anybody already repacket it in the list? Ciro
--- Ciro Iriarte <cyruspy@gmail.com> wrote:
have no idea how to print the filename in every line of the output.
Quick-and-dirty guess: #!/bin/bash for RPM in `find -type f -name "*.rpm"` do echo '---> '$RPM echo '-----------------------------------------------------------------' rpm -qp -i -l -v $RPM | awk '{printf("'$RPM': %s\n", $0)}' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' done __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/
yep, that makes the job (just moved the last echo to the beggining of the loop) Thanks On Fri, 4 Mar 2005 02:13:46 -0800 (PST), Jeff Pohlmeyer <yetanothergeek@yahoo.com> wrote:
--- Ciro Iriarte <cyruspy@gmail.com> wrote:
have no idea how to print the filename in every line of the output.
Quick-and-dirty guess:
#!/bin/bash for RPM in `find -type f -name "*.rpm"` do echo '---> '$RPM echo '-----------------------------------------------------------------' rpm -qp -i -l -v $RPM | awk '{printf("'$RPM': %s\n", $0)}' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' done
__________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (2)
-
Ciro Iriarte
-
Jeff Pohlmeyer