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

번호 제목 글쓴이 날짜 조회 수
286 리눅스 touch 명령어 file 호스트웨이 2012.08.03 24830
285 로그 관리 호스트웨이 2008.05.19 24801
284 반복적인 수행 crontab - 기본편 Namlyong 2010.04.02 24732
283 CGI 환경 테스트 sylee 2008.05.21 24613
282 debian .vimrc 활용 HOSTWAY 2009.04.15 24476
281 awk 를 이용한 패턴 처리 호스트웨이 2008.05.19 24463
280 php-5.2.x 설치 옵션 호스트웨이 2009.02.05 24393
279 특정 사용자 계정 동시 로그인 수 제한 file 호스트웨이 2012.05.11 24283
278 hdparm 옵션 알아보기 sylee 2010.02.04 24238
277 Linux 서버 root password 분실시 변경 방법 file 호스트웨이 2012.03.30 23999
276 samba 설정후, 한글 파일이 깨질때.. jook 2009.10.08 23924
275 Rsync를 이용한 데이터 Sync, 백업하기 – 2탄 호스트웨이 2012.07.13 23868
274 리눅스 APM 소스설치시 Error 및 해결 방법 호스트웨이 2012.09.21 23863
273 계정 생성 시 ftp 계정만 주고 Shell 로그인 차단하기 file 호스트웨이 2012.04.06 23704
272 History 삭제하는 방법 및 현재한 history 삭제하는 방법 호스트웨이 2012.08.24 23601
271 DHCP 환경에서의 resolv.conf 초기화 현상 호스트웨이 2012.03.09 23596
270 리눅스 ss 명령어 호스트웨이 2012.07.20 23509
269 grub-install 사용방법 호스트웨이 2012.05.04 23465
268 Network File System 호스트웨이 2008.05.19 23447
267 리눅스 커널 업데이트 및 커널 변경 부팅 방법 file 호스트웨이 2014.10.30 23373