Is there a simple command to get yum to list what packages are being excluded? mahalo, TDB
On Thu, 2010-10-14 at 10:53 -1000, Dave wrote:
Is there a simple command to get yum to list what packages are being excluded? mahalo, TDB
--- yum update -d3 Loaded plugins: fastestmirror Config time: 0.111 Yum Version: 3.2.22 Setting up Package Sacks Loading mirror speeds from cached hostfile Excluding Packages in global exclude list Excluding kernel-2.6.18-194.el5.x86_64 Excluding kernel-2.6.18-194.11.1.el5.x86_64 Excluding kernel-2.6.18-194.8.1.el5.x86_64 Excluding kernel-2.6.18-194.3.1.el5.x86_64 Excluding kernel-2.6.18-194.11.3.el5.x86_64 Excluding kernel-2.6.18-194.17.1.el5.x86_64 Excluding kernel-2.6.18-194.11.4.el5.x86_64 Finished
John
On 10/14/2010 03:53 PM, Dave wrote:
Is there a simple command to get yum to list what packages are being excluded? mahalo,
easy way to do this is write a couple of lines of code, or use something like this :
http://www.karan.org/blog/index.php/2009/05/28/checking-a-machines-yum-exclu...
- KB
On Thu, 2010-10-14 at 22:55 -0500, Karanbir Singh wrote:
On 10/14/2010 03:53 PM, Dave wrote:
Is there a simple command to get yum to list what packages are being excluded? mahalo,
easy way to do this is write a couple of lines of code, or use something like this :
http://www.karan.org/blog/index.php/2009/05/28/checking-a-machines-yum-exclu...
- KB
---- "d" is more trivial when you can not put nice things like that on some machines. I'll remember though you have it.
John
On Thu, Oct 14, 2010 at 5:55 PM, Karanbir Singh mail-lists@karan.org wrote:
On 10/14/2010 03:53 PM, Dave wrote:
Is there a simple command to get yum to list what packages are being excluded? mahalo,
easy way to do this is write a couple of lines of code, or use something like this :
http://www.karan.org/blog/index.php/2009/05/28/checking-a-machines-yum-exclu...
Snippet does not work for me, but the -d3 thing is good enough. Thanks!
Dave
Output: bash-3.2$ sudo wget -q http://centos.karan.org/check_excludes.py -O - | python Password: Loaded plugins: dellsysidplugin2, fastestmirror, priorities main: [] addons - [] adobe-linux-i386 - [] base - [] epel - [] extras - [] google - [] google64 - [] opennms-stable-common - [] opennms-stable-rhel5 - [] rpmforge - [] rpmfusion-free-updates - [] rpmfusion-free-updates-testing - [] rpmfusion-nonfree-updates - [] rpmfusion-nonfree-updates-testing - [] updates - [] bash-3.2$ sudo yum -d3 search lsb Loaded plugins: dellsysidplugin2, fastestmirror, priorities, security Config time: 0.141 Yum Version: 3.2.22 Setting up Package Sacks Loading mirror speeds from cached hostfile * addons: mirror.san.fastserv.com * base: mirror.san.fastserv.com * epel: ftp.osuosl.org * extras: mirrors.versaweb.com * rpmforge: ftp-stud.fht-esslingen.de * rpmfusion-free-updates: mirror.web-ster.com * rpmfusion-free-updates-testing: mirror.web-ster.com * rpmfusion-nonfree-updates: mirror.web-ster.com * rpmfusion-nonfree-updates-testing: mirror.web-ster.com * updates: mirror.san.fastserv.com addons | 951 B 00:00 adobe-linux-i386 | 951 B 00:00 base | 2.1 kB 00:00 epel | 3.7 kB 00:00 extras | 2.1 kB 00:00 google | 951 B 00:00 google64 | 951 B 00:00 opennms-stable-common | 951 B 00:00 opennms-stable-rhel5 | 951 B 00:00 rpmforge | 1.1 kB 00:00 rpmfusion-free-updates | 2.8 kB 00:00 rpmfusion-free-updates-testing | 2.8 kB 00:00 rpmfusion-nonfree-updates | 2.8 kB 00:00 rpmfusion-nonfree-updates-testing | 2.8 kB 00:00 updates | 1.9 kB 00:00 updates/primary_db | 799 kB 00:00 --> flash-plugin-10.0.22.87-1.el5.rf.x86_64 from rpmforge excluded (priority) --> flash-plugin-10.0.32.18-0.1.el5.rf.x86_64 from rpmforge excluded (priority) --> flash-plugin-10.0.45.2-0.1.el5.rf.x86_64 from rpmforge excluded (priority) --> flash-plugin-10.2.161.22-0.1.el5.rf.x86_64 from rpmforge excluded (priority) 4 packages excluded due to repository priority protections pkgsack time: 10.450 rpmdb time: 0.000 ================================= Matched: lsb ================================= redhat-lsb.i386 : LSB support for Red Hat Linux redhat-lsb.x86_64 : LSB support for Red Hat Linux tor-lsb.x86_64 : LSB initscripts for tor
Hi,
On 10/14/2010 11:14 PM, Dave wrote:
http://www.karan.org/blog/index.php/2009/05/28/checking-a-machines-yum-exclu...
Snippet does not work for me, but the -d3 thing is good enough. Thanks!
Not that it does not work, it does something different. The snippet will give you whats configured as a hard exclude in the config files along with what repo the excludes apply to. So it wont include excludes and other changes made during run time by yum plugins and yum itself.
- KB