RPM

macro for showing the arch of packages

 ~/.rpmmacros 

echo %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch} >> ~/.rpmmacros

command-line

rpm --qf="%{name}-%{version}-%{release}.%{arch}\n" -q packagename

setting up a user build environment

As a normal user do the following:

Directories (originally from the courier build documentation)

mkdir -p ~/rpmbuild/BUILD ~/rpmbuild/RPMS ~/rpmbuild/SOURCES ~/rpmbuild/SPECS ~/rpmbuild/SRPMS

Modify .rpmmacros to specify where your user build environment is

 ~/.rpmmacros 

echo %_topdir %\(echo \"\$HOME\"\)/rpmbuild >> ~/.rpmmacros

Mike Harris has also put together a package showing how to build RPMS as non-root [WWW] ftp://people.redhat.com/mharris/hacks/

remove all i386 i586 i686 packages from a x86_64 system

yum erase *.i386 *.i586 *.i686
echo "exclude=*.i386 *.i586 *.i686" >> /etc/yum.conf

last edited 2008-08-20 20:49:07 by MichaelBest