Skip to main content

Fedora: which which

Oh, come on, Fedora 11, a base install with no X11 contains almost 1000 packages but you don't have "which"? Better yet, you have an extra package for this? Wow:

$ yum info which
Name       : which
Arch       : i586
Version    : 2.19
Release    : 4.fc11
Size       : 40 k
Summary    : Displays where a particular program in your path is located
Something like "fedorautils" might help, hm?
$ dpkg -S `which which`
debianutils: /usr/bin/which
Oh, and while we're at it: here's how to get httpd running on a different port:
# service httpd start
Starting httpd: (13)Permission denied: make_sock:
could not bind to address
no listening sockets available, shutting down
Unable to open logs                                    [FAILED]

# tail /var/log/audit/audit.log
type=AVC msg=audit(1242447992.170:51): avc:  denied  { name_bind } for  pid=6144 \
comm="httpd" src=1080 scontext=unconfined_u:system_r:httpd_t:s0 \
tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket

# /usr/sbin/semanage port -a -t http_port_t -p tcp 1080
# service httpd start
Starting httpd:                                          [  OK  ]
A detailled explanation can be found in the Fedora SELinux User Guide.
Note: semanage comes with the policycoreutils-python package.