리눅스에서 실행 패키지가 어떤 역할을 하는지 궁금할 때.

리눅스에서 실행 패키지가 어떤 역할을 하는지 궁금할 때.

가령

sshd 라는 데몬이 어떤 패키지로 설치되었으며 어떤 역할을 하는지 알고 싶을 때

아래처럼 확인하시면 됩니다.


[root@rhel init.d]# rpm -qf sshd
openssh-server-4.3p2-24.el5
[root@rhel init.d]#
[root@rhel init.d]# rpm -qi sshd
package sshd is not installed
[root@rhel init.d]# rpm -qi openssh
Name        : openssh                      Relocations: (not relocatable)
Version     : 4.3p2                             Vendor: Red Hat, Inc.
Release     : 24.el5                        Build Date: Sat Jul 14 00:04:04 2007
Install Date: Tue Jan 26 16:29:09 2010      Build Host: ls20-bc1-14.build.redhat.com
Group       : Applications/Internet         Source RPM: openssh-4.3p2-24.el5.src.rpm
Size        : 743038                           License: BSD
Signature   : DSA/SHA1, Thu Jul 19 20:30:04 2007, Key ID 5326810137017186
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.openssh.com/portable.html
Summary     : The OpenSSH implementation of SSH protocol versions 1 and 2
Description :
SSH (Secure SHell) is a program for logging into and executing
commands on a remote machine. SSH is intended to replace rlogin and
rsh, and to provide secure encrypted communications between two
untrusted hosts over an insecure network. X11 connections and
arbitrary TCP/IP ports can also be forwarded over the secure channel.

OpenSSH is OpenBSD's version of the last free version of SSH, bringing
it up to date in terms of security and features, as well as removing
all patented algorithms to separate libraries.

This package includes the core files necessary for both the OpenSSH
client and server. To make this package useful, you should also
install openssh-clients, openssh-server, or both.
[root@rhel init.d]#