Linux ETC

yum 사용 팁

2008.09.02 23:13

jook 조회 수:38918

yum search application_name ---> 사용 가능한 application_name을 찾는다
ex) 아래와 같이 search 할 경우 httpd 와 관련 된 패키지 리스트를 모두 찾아 준다.
[root@jook ~]# yum search httpd
Loaded plugins: refresh-packagekit
=========================== Matched: httpd ===================================
mod_ssl.i386 : SSL/TLS module for the Apache HTTP Server
system-config-httpd.noarch : Apache 설정 도구
fedora-ds.i386 : Red Hat Directory, Administration, and Console Suite
httpd.i386 : Apache HTTP 서버
httpd-devel.i386 : Development interfaces for the Apache HTTP server
httpd-manual.i386 : Documentation for the Apache HTTP server
httpd-tools.i386 : Tools for use with the Apache HTTP Server
libapreq2.i386 : Apache HTTP request library
libapreq2-devel.i386 : Development files for libapreq2
lighttpd.i386 : Lightning fast webserver with light system requirements
lighttpd-fastcgi.i386 : FastCGI module and spawning helper for lighttpd and PHP configuration
lighttpd-mod_geoip.i386 : GeoIP module for lighttpd to use for location lookups
lighttpd-mod_mysql_vhost.i386 : Virtual host module for lighttpd that uses a MySQL database
mantis-config-httpd.noarch : Mantis configuration for Apache httpd
mod_bw.i386 : Bandwidth Limiter For Apache
mod_dav_svn.i386 : Apache server module for Subversion server
mod_dnssd.i386 : An Apache HTTPD module which adds Zeroconf support
mogstored-backend-lighttpd.noarch : LigHTTPd backend for mogstored
ocaml-ocamlnet.i386 : Network protocols for OCaml
ocaml-ocamlnet-nethttpd.i386 : Ocamlnet HTTP daemon
ocaml-ocamlnet-nethttpd-devel.i386 : Development files for ocaml-ocamlnet-nethttpd
perl-Apache-Session.noarch : Persistence framework for session data
perl-POE-Component-Server-HTTP.noarch : Foundation of a POE HTTP Daemon
perl-libapreq2.i386 : Perl interface to the Apache HTTP request library
phpldapadmin.noarch : Web-based tool for managing LDAP servers
phpwapmail.noarch : WAP-based e-mail client
tclhttpd.i386 : Extensible Web+Application server written in Tcl
thttpd.i386 : Tiny, turbo, throttleable lightweight http server
[root@jook ~]#

yum list available -> 사용가능한 전체 패키지 리스트를 보여준다
ex) 아래와 같이 입력할 경우 debian 에서 설치 가능한 전체 리스트를 보여준다. more 나 grep 을 이용해서 원하는 패키지를 찾을 수 있다.
[root@jook ~]# yum list available
Loaded plugins: refresh-packagekit
Available Packages
8Kingdoms.i386                           1.1.0-6.fc9            fedora
AGReader.i386                            1.2-5.fc9              fedora
AcetoneISO.i386                          6.7-5.fc9              fedora
AcetoneISO2.i386                         2.0.2-4.fc9            updates
AllegroOGG.i386                          1.0.3-4.fc9            fedora
~ ~ ~ ~

yum info application_name -> 특정 패키지 정보를 보여준다
ex) mysql-devel 패키지의 정보를 출력
[root@jook ~]# yum info mysql-devel
Loaded plugins: refresh-packagekit
Available Packages
Name       : mysql-devel
Arch       : i386
Version    : 5.0.51a
Release    : 1.fc9
Size       : 2.4 M
Repo       : fedora
Summary    : Files for development of MySQL applications
URL        : http://www.mysql.com
License    : GPLv2 with exceptions
Description: MySQL is a multi-user, multi-threaded SQL database server. This package contains the libraries and header files that
           : are needed for developing MySQL client applications.

yum list extras -> 현재 서버에서 업데이트 가능한 패키지, 불필요한 패키지를 보여준다.
ex) 아래의 예에서는 fedora9에 포함되어 있지 않는 lilo 패키지와, update되기 이전의 kernel 패키지를 출력해 주고 있다.
만약 업데이트 가능한 패키지가 있다면, 패키지 명을 출력하게 된다. 업데이느 가능한 패키지는 yum update 를 통해서 설치 가능 하다.
[root@jook ~]# yum list extras
Loaded plugins: refresh-packagekit
Extra Packages
kernel.i686                              2.6.25.11-97.fc9       installed
lilo.i386                                21.4.4-22              installed

yum install application_name -> 패키지 설치.

yum remove application_name -> 패키지 삭제.

yum update -> 시스템 업데이트, 업데이트 가능한 패키지들을 업데이트 한다.

yum check-update -> 업데이트 체크.

번호 제목 글쓴이 날짜 조회 수
226 리눅스 사용자에게 메시지 보내기 file 호스트웨이 2012.10.04 17552
225 리눅스 whereis 명령어 file 호스트웨이 2012.09.28 1634
224 리눅스 tee명령어를 이용하여 디렉토리 목록 저장 file 호스트웨이 2012.09.28 4730
223 서비스 체크 스크립트 호스트웨이 2012.09.28 4536
222 yum을 이용한 X-Window 설치 호스트웨이 2012.09.27 3000
221 iptables를 이용한 ssh 스캐닝 공격 방어 호스트웨이 2012.09.21 3333
220 SFTP 접속 방법 file 호스트웨이 2012.09.21 6768
219 리눅스 tree 명령어 file 호스트웨이 2012.09.21 2925
218 리눅스 APM 소스설치시 Error 및 해결 방법 호스트웨이 2012.09.21 23863
217 리눅스 Ubuntu 네트워크 설정 호스트웨이 2012.09.14 11494
216 리눅스 File 명령어를 통해 파일의 확장자나 속성알아보기 file 호스트웨이 2012.09.14 22196
215 CentOS yum 빠르게 사용하기 호스트웨이 2012.09.14 13263
214 netstat 명령 옵션-2 호스트웨이 2012.09.13 15803
213 chfn 명령어를 통한 사용자 정보변경 file 호스트웨이 2012.09.07 11325
212 LVM 명령 요약 호스트웨이 2012.09.06 31308
211 APM, PHP 컴파일 옵션 확인하기 호스트웨이 2012.09.05 19572
210 CentOS 5/6 에 VMware Tools 설치 방법 호스트웨이 2012.08.31 17052
209 리눅스 bc명령어 file 호스트웨이 2012.08.31 16778
208 cron table의 각 필드 설명 호스트웨이 2012.08.31 12016
207 LILO - Warning: /dev/sda not first disk 에러 발생시 호스트웨이 2012.08.24 11629