Wednesday, December 20, 2006

RedHat RPM

query:
rpm -qa | grep xxx

install:
rpm -ivh xxx.rpm

upgrade:
rpm -Uvh xxx.rpm

build rpm src:
rpmbuild --rebuild filename.src.rpm

rpm -Uvh alien-6.51-1.src.rpm
rpm -bb /usr/src/redhat/SPECS/alien-6.51-1.spec
rpm -Uvh /usr/src/redhat/RPMS/i386/alien-5.51-1.rpm

No comments: