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 읽기 전용 파티션 읽고 쓸수 있게 재마운트하는 방법 호스트웨이 2015.09.13 2714
325 vsftpd 패시브 모드 설정 호스트웨이 2015.09.13 3343
324 우분투 서버에 JDK7 설치하기 호스트웨이 2015.09.13 1359
323 리눅스 파일 및 디렉토리 권한 관리 file 호스트웨이 2015.09.13 5181
322 root 초기 접속 홈디렉토리 변경하기 호스트웨이 2015.09.12 7025
321 Linux 외장 저장장치 mount file 호스트웨이 2015.09.10 1397
320 SNMPD LOG 안남게 하기 호스트웨이 2015.09.10 2887
319 XFS 파티션 설치 및 마운트 (CentOS 기준) 호스트웨이 2015.09.09 25349
318 UTF-8 환경의 Linux 에서 SAMBA 한글 인코딩 문제 해결 방법 호스트웨이 2015.09.09 3276
317 500 FTP server shut down 문제 해결 호스트웨이 2015.09.09 2394
316 Linux vmstat 명령어 호스트웨이 2015.09.08 1093
315 useradd 명령어 사용방법 및 옵션 호스트웨이 2015.09.08 4431
314 linux 특정 용량으로 파일을 찾기, 삭제하기 호스트웨이 2015.09.08 4682
313 apache log rotatelogs 관리 호스트웨이 2015.09.08 3785
312 디렉토리(폴더) 색상 변경하기 file 호스트웨이 2015.09.08 4281
311 리눅스 파일 소유자, 권한 일괄 변경하기 호스트웨이 2015.09.08 7729
310 Log file 주기적으로 정리하기 호스트웨이 2015.09.08 1644
309 UTF-8 환경에서 리눅스 한글 꺠짐 현상 해결법 호스트웨이 2015.09.08 2761
308 리눅스 UTF-8 언어 설정 호스트웨이 2015.09.07 27550
307 cdp 백업 프로세스 관련 호스트웨이 2015.09.07 1005