User Tools

Site Tools


rpm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rpm [2011/04/11 13:37] aorthrpm [2012/03/21 12:14] (current) – [Building RPMs] ikahugu
Line 40: Line 40:
 <code>$ sudo yum install rpm-build</code> <code>$ sudo yum install rpm-build</code>
 Setup your home directory's environment: Setup your home directory's environment:
-<code>$ cp -a /usr/src/redhat/ ~/+<code>$ cp -a /usr/src/redhat/ ~/rpmbuild
 $ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros</code> $ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros</code>
 Download an SRPM and build: Download an SRPM and build:
Line 47: Line 47:
 Install with: Install with:
 <code>$ sudo rpm -i ~/rpmbuild/RPMS/x86_64/python26-2.6-geekymedia1.x86_64.rpm</code> <code>$ sudo rpm -i ~/rpmbuild/RPMS/x86_64/python26-2.6-geekymedia1.x86_64.rpm</code>
 +If upgrading, use 
 +<code>$ sudo rpm -U ~/rpmbuild/RPMS/x86_64/python26-2.6-geekymedia1.x86_64.rpm</code>
 ====== Troubleshooting ====== ====== Troubleshooting ======
  
rpm.txt · Last modified: 2012/03/21 12:14 by ikahugu