[Techtalk] RT?M,,, I did

Hugo Chasqueira hchasqueira at netcabo.pt
Wed Dec 18 03:03:14 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi.

>         Is "rpm Uhv" a valid command on "src.rpm"? Or is "ihv" manditory?
>         
>         Andrew

The src rpms contain source tarballs.

rpm -ivh installs the tarballs on your system. In mdk they go to 
/usr/src/RPM/SOURCES. It also puts the spec file needed to rebuild the 
package in /usr/src/RPM/SPECS. This allows you to change the spec file or the 
source. The source rpms installed with -ivh don't count as installed packages 
(you can check with rpm -qa after installing it), so i don't think updating 
the package with -uvh would make much sense.

If you want rpm to rebuild the package, you don't need to install the src rpm, 
just:
rpm --rebuild package.src.rpm

You can search the output lines for one that looks like 'Wrote 
package.i586.rpm to /usr/...'

In mdk, the rebuilt package will go into /usr/src/RPM/RPMS/i?86/.

- -- 
Hugo Chasqueira

PGP Key:
http://search.keyserver.net:11371/pks/lookup?op=get&search=0x8BD14B82&template=netenextract
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9/9djjFeRi4vRS4IRAtEPAJ4nV6CB04pichXQ3+fraqgePiESOwCdEBF4
Zx8SlIPBKc/N2BRx5+4BATc=
=n7sO
-----END PGP SIGNATURE-----




More information about the Techtalk mailing list