Friday, September 21, 2012

What packages require a given package?

How do you determine what packages require a given package?
repoquery --tree-whatrequires <package>
For example, let's say you want to find out what packages depend on rdma:
$ repoquery --tree-whatrequires rdma
rdma-1.0-14.el6.noarch [cmd line]
\_ opensm-3.3.9-1.el6.x86_64 [1: rdma = 1.0-14.el6]
There you have it... opensm is the only package that requires rdma.

Source: Stack Overflow

Wednesday, February 09, 2011

RHEL5 Interactive Startup Without Pressing "i"

This was not easy information to come by, but once I dug through RHEL5's /etc/rc.sysinit it was obvious. Instead of pressing "i" when prompted for an interactive startup (ie, asking if you want to start each service), you can add "confirm" to the kernel command line in GRUB.

Friday, December 17, 2010

Changing File Permissions

Maybe I missed the memo on this feature of chmod(1), but I really dig it.
chmod o=g foo
That sets the "other" permissions to whatever the "group" permissions are. Combine that with "-R" and you can quickly adjust the "other" permissions of a whole tree to be the same as the file/dir "group" permissions.

Of course, care should be taken so as to not grant everyone write permissions. :)

Wednesday, October 07, 2009

Tuesday, September 22, 2009

DHCP Usage

I don't think anybody reads this blog, but...

If anybody is reading (Hello? Is this thing on?) I have a question... How extensive is your use of DHCP? I'm slowly migrating almost every network device to statically assigned DHCP, including servers. Do you use DHCP for servers and other fixed devices?

Just wonderin'...