Tags / Linux
Miscellaneous System Administration Notes
Some miscellaneous notes I may split out into separate posts later… don’t bookmark this one.
View open network connections on OS X
sudo lsof -lnP +M -i4
The options:
-l don't convert uids to login
-n dont' convert network numbers to to hostnames
-P don't convert port numbers to service names
+M enable portmapping
-i4 look for IPv4 connections
See also nettop
. 3rd party apps include Little Snitch and RubberNet.
yum notes
Some notes I kept when I was learning how to use yum
.
Installing a package that has been excluded
The file /etc/yum.conf
may contain an ’excludes’ line that will disallow updates of any of packages listed. To bypass this, you can comment out those packages in /etc/yum.conf
, or you can one-off it like this:
yum --disableexcludes all install gcc
Finding which repo has the file you need
yum provides '*apxs*'
You may need to add ‘–disableexcludes all’ too.