On Saturday 19 March 2005 10:05 am, Tom wrote: > James Henry Maiewski wrote: > > Hello, > > > > I downloaded kdeutils-3.2.3-28.3.101mdk.src.rpm to see what I could > > see, but when I try to install it, it says "everything already > > installed." If these are supposed to go in /usr(/local)/src they are > > empty. How is the installation of .src.rpm files supposed to work? > > > > With an advance of thanks, > > James Henry Maiewski > > src.rpm's are not to be installed (tho they can be). You can > compile the rpms contained in the src.rpm by doin (as root) > > 'rpm --rebuild kdeutils-3.2.3-28.3.101mdk.src.rpm' > Not to be too picky, but technically, rpm is deprecated and rpmbuild --rebuild is preferred because it has been split into separate packages.
> the resulting rpms will then be found in > /usr/src/RPM/RPMS/i586/ > Just as a general rule it is not a good idea to compile src.rpms as root, because if the buildroot variable is not set, the package will actually get installed on your machine, so as a habit, it is safer to setup the RPM dir in ~/ and build as user. Mandrake is very good about this, but occasionally you get a 3rd party packager that forgets to set this and It's just a good habit. and you can bork the system. > Another example; > > 'rpm --rebuild --target athlon kdeutils-3.2.3-28.3.101mdk.src.rpm' > > will compile the rpms, athlon optimized, and place them in > /usr/src/RPM/RPMS/athlon/ > This is cool, and might be fun to experiment to see if this has any effect on your system. > The src.rpm will build _all_ the rpms contained in the > src.rpm. So if you only want to upgrade only kdeutils rpms you > already have installed, cd to one of the above directories and use > Just one small point about your use of terminology in order to clarify, you are compiling the source and building the rpm packages as they are specified in the src.rpm's spec file, not releasing already built things packaged together. It kind of sounds like they are being hatched instead of built the way you described it :) -- /g
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
