[Rpm-maint] [wish] src.rpm management

Mark Hatle mark.hatle at windriver.com
Wed Jan 21 16:18:22 UTC 2009

This may point out a misunderstanding of what RPM does with source packages.. 
It really just unpacks them and places them into the right macro locations.. it 
doesn't actually "install" them the way normal binary RPMS are installed.

And alternative way to "install" a source package:

mkdir <tmp_dir> ; cd <tmp_dir>
rpm2cpio <source_pkg> | cpio -id
mv <specfile> <SPECS_DIR>

[rough, probably doesn't work.. but gives you an idea of what it's doing..]


Jeff Sheltren wrote:
> On Jan 21, 2009, at 7:46 AM, Maciej Pilichowski wrote:
>> Hello,
>>  Not a big issue, however odd -- rpm can install source rpm file, but
>> it cannot list it or uninstall, user has to to it manually.
>>  It would be useful to have additional flag for rpm, like "--src" to
>> include source rpms
>> rpm -qa --src
>> would list also src.rpms, in uninstall, lists, etc.
>>  My main point is -- tool which is able to install X should be able
>> to uninstall X as well.
>>  Your thoughts?
> I wouldn't consider SRPMs to be packages like RPMs are.  As a non-root  
> user, I can install an SRPM into (in my case) /home/jeff/rpmbuild  
> which is the setting for %_topdir in my ~/.rpmmacros  I don't think  
> the system needs to track this.
> -Jeff
> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-maint

More information about the Rpm-maint mailing list