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 -> 업데이트 체크.

번호 제목 글쓴이 날짜 조회 수
326 리눅스 간단 시스템 점검 1편 호스트웨이 2012.11.14 4128
325 vi 편집기에서 모든글자를 대소문자로 변경할때 사용하는 명령어 호스트웨이 2012.11.23 4135
324 VNC-server 설치 및 설정 호스트웨이 2012.10.12 4155
323 리눅스 dmesg 명령어 file 호스트웨이 2012.12.06 4158
322 rpm에서 원하는 파일만 풀어서 사용하기 호스트웨이 2015.09.19 4276
321 [ERROR] ftp error 500 OOPS: cannot change directory:/home/ 호스트웨이 2012.12.21 4285
320 ngrinder를 이용한 부하 테스트 - 1) Controller 설치 file 호스트웨이 2015.04.08 4285
319 /dev/null 과 /dev/zero의 차이 file 호스트웨이 2012.10.05 4295
318 디렉토리(폴더) 색상 변경하기 file 호스트웨이 2015.09.08 4296
317 명령어 dstat 사용하기 호스트웨이 2015.09.01 4370
316 ifconfig 항목 설명 호스트웨이 2012.11.22 4399
315 리눅스 comm 명령어를 통해 두개의 파일내용 비교하기 file 호스트웨이 2012.11.29 4420
314 df 와 du의 출력 크기가 다르게 보이는 이유 호스트웨이 2012.12.14 4427
313 useradd 명령어 사용방법 및 옵션 호스트웨이 2015.09.08 4435
312 리눅스 파일명 일괄변경하기 file 호스트웨이 2012.10.18 4469
311 리눅스 tac 명령어를 통해 파일내용 역순으로 출력하기 file 호스트웨이 2012.10.18 4479
310 Block 단위 파일 복사를 위한 dd 사용 호스트웨이 2015.09.18 4517
309 서비스 체크 스크립트 호스트웨이 2012.09.28 4537
308 리소스 많이 차지하는 프로세스 찾기 호스트웨이 2015.09.20 4560
307 Kick-Start 설정 호스트웨이 2015.09.18 4590