Re: installing source rpm packages (.src.rpm) via yum and yumex?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aaron Konstam wrote:
>> And, for what's probably the zillionth time on this list, it is
>> never desirable to install or build source rpms as root.  Instead,
>> install and build as a normal user.  You can use the handy
>> rpmdev-setuptree script from the rpmdevtools package to create the
>> directory structure and config file needed for this.  See the draft
>> building packages guide for more info:
>> 
>> http://fedoraproject.org/wiki/Docs/Drafts/BuildingPackagesGuide 
> 
> 1.Just to be sure, why is this superior to building the rpm as root?
> Is it because the compiling this way cannot destroy your system?

Yes.  If you build packages as root it is incredibly easy to hose your
system.  All it takes is a minor error in the rpm spec file or the
Makefiles of the software you are building.  Many spec files include a
command to wipe the build root prior to installing (as in rm -rf).

I don't think this is still the case, but in the past I believe the
build root defaulted to / if it wasn't set elsewhere in the spec file
or the rpm config.  Imagine %{buildroot} = / and rm -rf %{buildroot}.
(Ouch!)

So, for many reasons, it's just not good practice to build packages as
root.  IMO, it would be nice if upstream rpm or the fedora packages
made it harder to do this -- at least spewing a warning about it when
you did it.

> 2. But you still need to install the binary rpm as root don't you?

Yes, to install rpms you do generally need to be root.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hang in there, retirement is only thirty years away!

Attachment: pgp0tIZS0KugB.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux