How can I ignore dependencies of a single package I am attempting to install using yum in Scientific Linux? The answer would presumably the same for CentOS/RHEL.To elaborate, I am looking to get the utility lsb_release, which I know would be put into /usr/bin/lsb_release. The command yum whatprovides /usr/bin/lsb_release tells me that it is part of the redhat-lsb packages (for the respective architectures), but those have a bunch of dependencies, including some X11-related.Since I am only after the lsb_release program, I would like to dodge the crud that comes with the dependencies. How can I achieve that?
Ignoring dependencies when installing with yum (Scientific Linux)
linux;rhel;yum
You can't.  Installing the X stuff is probably meaningless, unless you have a tiny amount of storage and every MB counts, or if it includes an entire DE, (which it probably doesn't) since that may include some system configuration you don't want.If you still don't want to go that route, you should be able to find an appropriate .rpm (you might be able to use yum to get the one from the repo without an install, see here; I haven't tried that and don't know if dependencies will be a hassle; the easiest thing might be to just use rpmfind).   You can then unpack the rpm using rpm2cpio and install the lsb_release binary yourself; check it first with ldd lsb_release to make sure the libraries it needs are available.  There may also be other little pieces in the rpm you need.There are already explanations of rpm2cpio online, so I won't repeat all that.  If you use the mc filebrowser you can use that instead of rpm2cpio -- it will let you browse the inside of an rpm the same way you might a tarball or zip file.