Blog Post

My Daily WTF

[root@centos-yum-repo ~]# yum whatprovides indexhtml
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirrors.liquidweb.com
* updates: mirror.sanctuaryhost.com
* addons: chi-10g-1-mirror.fastsoft.net
* extras: pubmirrors.reflected.net
Excluding Packages in global exclude list
Finished
centos-release-notes.i386 : CentOS release notes files
centos-release-notes.i386 : CentOS release notes files

OK, groovy, now I want to remove centos-release-notes for my slimmed down version being utilized as an appliance, I am rebranding my OS, don’t need the CentOS stuff. So I do:

[root@centos-yum-repo ~]# yum erase centos-release-notes

And this leads to:

Resolving Dependencies
--> Running transaction check
---> Package centos-release-notes.i386 0:5.2-2 set to be erased
--> Processing Dependency: centos-release-notes for package: centos-release
--> Running transaction check
---> Package centos-release.i386 10:5-2.el5.centos set to be erased
--> Processing Dependency: /etc/redhat-release for package: initscripts
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.i386 0:8.45.19.1.EL-1.el5.centos set to be erased
--> Processing Dependency: initscripts for package: xorg-x11-xfs
--> Processing Dependency: initscripts >= 5.86-1 for package: kbd
--> Processing Dependency: initscripts >= 6.38 for package: quota
--> Processing Dependency: initscripts >= 5.92 for package: isdn4k-utils

Oh, it goes on, and you see some of this:

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 centos-release-notes    i386       5.2-2            installed          49 k
Removing for dependencies:
 Deployment_Guide-en-US  noarch     5.2-11.el5.centos  installed         6.8 M
 GConf2                  i386       2.14.0-9.el5     installed         4.6 M
 MAKEDEV                 i386       3.23-1.2         installed         642 k
 NetworkManager          i386       1:0.6.4-8.el5    installed         1.2 M
 NetworkManager-glib     i386       1:0.6.4-8.el5    installed          18 k
 PyXML                   i386       0.8.4-4          installed         5.2 M

And at the end you see this:

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove     367 Package(s)
 
Is this ok [y/N]:

What? If I want to remove the release notes, I have to remove the entire freakin’ system? You pretty much do, so what do we do to get around this? Create a fake package, or use one of our other custom packages, and have it provide indexhtml. Time to go find the strongest drink I can possibly locate. Gasoline should do!

This entry was posted in Personal and tagged . Bookmark the permalink. Trackbacks are closed, but you can post a comment.
  • Archives


semidetached
semidetached
semidetached
semidetached