TreeHugger
09-24-2003, 07:27 AM
It seems from the docs on rpm that I can use the --repackage option to rebuild an rpm file from an installed package.
I'm not getting very far with it. This is the option in the docs:
--repackage
Re-package the files before erasing. The previously installed
package will be named according to the macro %_repack-
age_name_fmt and will be created in the directory named by the
macro %_repackage_dir (default value is /var/tmp).
At the top of the doc, it says this is an install option, but it looks here like an erase option. Anyway I tried both:
rpm -e --repackage myrpm-1.1
and
rpm -i --repackage myrpm-1.1
The first removed the files but didn't create any rpm, and the second was bad syntax.
I looked in /var/tmp and in my current dir for the rpm it might have produced, but nothing. How would I find out what those two macros are? Or how to set them?
Thanks!
I'm not getting very far with it. This is the option in the docs:
--repackage
Re-package the files before erasing. The previously installed
package will be named according to the macro %_repack-
age_name_fmt and will be created in the directory named by the
macro %_repackage_dir (default value is /var/tmp).
At the top of the doc, it says this is an install option, but it looks here like an erase option. Anyway I tried both:
rpm -e --repackage myrpm-1.1
and
rpm -i --repackage myrpm-1.1
The first removed the files but didn't create any rpm, and the second was bad syntax.
I looked in /var/tmp and in my current dir for the rpm it might have produced, but nothing. How would I find out what those two macros are? Or how to set them?
Thanks!