RPM QUERY | %{NAME}-%{VERSION}-%{RELEASE} %{ARCH}


[root@localhost Packages]# rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n”

[root@localhost Packages]# rpm -q –queryformat “%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n” nmap-5.21-4.el6.x86_64

for i in `cat /tmp/i386`;
do
echo $i;
mv /distro/eCentrix/Packages/$i /tmp/packagei386/
done

 

for i in `rpm -qa –qf “%{NAME} %{VENDOR}\n” |\
grep -i centos | awk ‘{ print $1 }’`
do yum -y reinstall $i
done

http://www.rpm.org/max-rpm/s1-rpm-query-parts.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: