페도라에서 소프트웨어를 검색하거나, 설치할 때 쓰는 명령어가 yum 입니다. 


물론 rpm으로 설치하는 방법도 있지만, 의존성 문제가 발생할 수 있죠? 그래서 yum으로 설치하는 게 좋습니다.


또 물론, yum으로 검색이 되지 않는 것은 rpm 또는 직접 소스코드를 받아서 빌드해서 사용하는 방법이 있죠.


다시 본론으로 돌아와서 


저는 얌으로 발음하고, 다른 분들은 염, 윰 등으로 발음하시더라구용. 


머가 정확한지는 중요하지 않구요. 암튼 yum을 통해서 소프트웨어 또는 라이브러리 등등을 검색하고, 설치하는 것에 대해서 간단한게 정리합니다.



0. yum --help


리눅스에서 명령어 뒤에 --help 즉 옵션으로 help를 주면 사용 방법이 쭉 나오는데요. 일단 yum의 --help는 다음과 같습니다.



[yourid@computer_name ~]$ yum --help

Loaded plugins: langpacks, presto, refresh-packagekit

Adding en_US to language list

Usage: yum [options] COMMAND


List of Commands:


check          Check for problems in the rpmdb

check-update   Check for available package updates

clean          Remove cached data

deplist        List a package's dependencies

distribution-synchronization Synchronize installed packages to the latest available versions

downgrade      downgrade a package

erase          Remove a package or packages from your system

groupinfo      Display details about a package group

groupinstall   Install the packages in a group on your system

grouplist      List available package groups

groupremove    Remove the packages in a group from your system

help           Display a helpful usage message

history        Display, or use, the transaction history

info           Display details about a package or group of packages

install        Install a package or packages on your system

list           List a package or groups of packages

localinstall   Install a local RPM

makecache      Generate the metadata cache

provides       Find what package provides the given value

reinstall      reinstall a package

repolist       Display the configured software repositories

resolvedep     Determine which package provides the given dependency

search         Search package details for the given string

shell          Run an interactive yum shell

update         Update a package or packages on your system

upgrade        Update packages taking obsoletes into account

version        Display a version for the machine and/or available repos.



Options:

  -h, --help            show this help message and exit

  -t, --tolerant        be tolerant of errors

  -C, --cacheonly       run entirely from system cache, don't update cache

  -c [config file], --config=[config file]

                        config file location

  -R [minutes], --randomwait=[minutes]

                        maximum command wait time

  -d [debug level], --debuglevel=[debug level]

                        debugging output level

  --showduplicates      show duplicates, in repos, in list/search commands

  -e [error level], --errorlevel=[error level]

                        error output level

  --rpmverbosity=[debug level name]

                        debugging output level for rpm

  -q, --quiet           quiet operation

  -v, --verbose         verbose operation

  -y, --assumeyes       answer yes for all questions

  --version             show Yum version and exit

  --installroot=[path]  set install root

  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)

  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)

  -x [package], --exclude=[package]

                        exclude package(s) by name or glob

  --disableexcludes=[repo]

                        disable exclude from main, for a repo or for

                        everything

  --obsoletes           enable obsoletes processing during updates

  --noplugins           disable Yum plugins

  --nogpgcheck          disable gpg signature checking

  --disableplugin=[plugin]

                        disable plugins by name

  --enableplugin=[plugin]

                        enable plugins by name

  --skip-broken         skip packages with depsolving problems

  --color=COLOR         control whether color is used

  --releasever=RELEASEVER

                        set value of $releasever in yum config and repo files

  --setopt=SETOPTS      set arbitrary config and repo options

  --disablepresto       disable Presto plugin and don't download any deltarpms


  Plugin Options:



아따 길죠?.


제가 설명하고자 하는 것에는 핑크색으로 크게 표시해뒀습니다.


1. yum search


필요한 라이브러리 또는 소프트웨어를 검색하기 위해서 yum search를 사용하실 수 있는데요.


사용 방법은 아래와 같습니다.


Usage : yum search 찾고 싶은 거

Example : yum search httpd    <---- httpd를 찾아죠!!


쉽죠?


example 처럼 치시면 아래와 같이 나옵니다.


[yourid@computer_name ~]$ yum search httpd

Loaded plugins: langpacks, presto, refresh-packagekit

Adding en_US to language list

updates/metalink                                                                                                                               | 3.1 kB     00:00     

=========================================================================== Matched: httpd ===========================================================================

libmicrohttpd-doc.noarch : Documentation for libmicrohttpd

lighttpd-fastcgi.i686 : FastCGI module and spawning helper for lighttpd and PHP configuration

lighttpd-mod_geoip.i686 : GeoIP module for lighttpd to use for location lookups

lighttpd-mod_mysql_vhost.i686 : Virtual host module for lighttpd that uses a MySQL database

anyterm-httpd.i686 : Httpd proxy configuration for anyterm

httpd-devel.i686 : Development interfaces for the Apache HTTP server

httpd-manual.noarch : Documentation for the Apache HTTP server

httpd-tools.i686 : Tools for use with the Apache HTTP Server

libmicrohttpd.i686 : Lightweight library for embedding a webserver in applications

libmicrohttpd-devel.i686 : Development files for libmicrohttpd

mantis-config-httpd.noarch : Mantis configuration for Apache httpd

mogstored-backend-lighttpd.noarch : LigHTTPd backend for mogstored

ocaml-ocamlnet-nethttpd-devel.i686 : Development files for ocaml-ocamlnet-nethttpd

tclhttpd.i686 : Extensible Web+Application server written in Tcl

thttpd.i686 : Tiny, turbo, throttleable lightweight http server

ebhttpd.i686 : HTTP server for accessing "CD-ROM books"

httpd.i686 : Apache HTTP Server

lighttpd.i686 : Lightning fast webserver with light system requirements

mod_dav_svn.i686 : Apache httpd module for Subversion server

mod_dnssd.i586 : An Apache HTTPD module which adds Zeroconf support

ocaml-ocamlnet-nethttpd.i686 : Ocamlnet HTTP daemon

system-config-httpd.noarch : Apache configuration tool

389-ds.noarch : 389 Directory, Administration, and Console Suite

ccze.i686 : A robust log colorizer

drbdlinks.noarch : A program for managing links into a DRBD shared partition

gridsite.i686 : Grid Security for the Web, Web platforms for Grids

libapreq2.i686 : Apache HTTP request library

libapreq2-devel.i686 : Development files for libapreq2

mod_bw.i686 : Bandwidth Limiter For Apache

mod_cluster.i686 : Apache HTTP load balancer

mod_fcgid.i686 : FastCGI interface module for Apache 2

mod_gnutls.i686 : GnuTLS module for the Apache HTTP server

mod_ssl.i686 : SSL/TLS module for the Apache HTTP Server

ocaml-ocamlnet.i686 : Network protocols for OCaml

perl-Apache-Session.noarch : Persistence framework for session data

perl-Object-Event.noarch : Class that provides an event callback interface

perl-POE-Component-Server-HTTP.noarch : Foundation of a POE HTTP Daemon

perl-libapreq2.i686 : Perl interface to the Apache HTTP request library

phpldapadmin.noarch : Web-based tool for managing LDAP servers

phpwapmail.noarch : WAP-based e-mail client

qgis-mapserver.i686 : FCGI based OGC web map server

spawn-fcgi.i686 : Simple program for spawning FastCGI processes

viewvc-httpd.noarch : ViewVC configuration for Apache/mod_python


그럼 이제 install 을 해보죠.



2. yum install


yum search로 찾은 목록 중에서 설치하고 싶은거를 긁어서 사용하심 됩니다.


예를 들어 위에서 검색된 것 중에 제일 아래 있는 viewvc-httpd.noarch를 설치하고 싶으시다 !!! 그럼 아래와 같이 사용하시면 되요.



Example : yum install viewvc-httpd.noarch    <---- viewvc-httpd.noarch를 설치해줘!!!


넹. 그럼 아래와 같이 좍 설치됩니다. 물론 설치가 가능한 권한이 있어야죠.


즉 root 이거나 sudo 유저만 가능하죠.


[root@computer_name ..]# yum install -y viewvc-httpd.noarch

Loaded plugins: langpacks, presto, refresh-packagekit

Adding en_US to language list

updates/metalink                                                                                                                               | 3.1 kB     00:00     

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package viewvc-httpd.noarch 0:1.1.12-1.fc14 set to be installed

--> Processing Dependency: viewvc = 1.1.12-1.fc14 for package: viewvc-httpd-1.1.12-1.fc14.noarch

--> Processing Dependency: mod_python for package: viewvc-httpd-1.1.12-1.fc14.noarch

--> Running transaction check

---> Package mod_python.i686 0:3.3.1-14.fc14 set to be installed

---> Package viewvc.noarch 0:1.1.12-1.fc14 set to be installed

--> Processing Dependency: python-pygments for package: viewvc-1.1.12-1.fc14.noarch

--> Processing Dependency: cvsgraph for package: viewvc-1.1.12-1.fc14.noarch

--> Running transaction check

---> Package cvsgraph.i686 0:1.6.1-8.fc12 set to be installed

---> Package python-pygments.noarch 0:1.4-1.fc14 set to be installed

--> Processing Dependency: python-setuptools for package: python-pygments-1.4-1.fc14.noarch

--> Running transaction check

---> Package python-setuptools.noarch 0:0.6.24-1.fc14 set to be installed

--> Finished Dependency Resolution


Dependencies Resolved


======================================================================================================================================================================

 Package                                       Arch                               Version                                   Repository                           Size

======================================================================================================================================================================

Installing:

 viewvc-httpd                                  noarch                             1.1.12-1.fc14                             updates                             8.0 k

Installing for dependencies:

 cvsgraph                                      i686                               1.6.1-8.fc12                              fedora                               82 k

 mod_python                                    i686                               3.3.1-14.fc14                             updates                             290 k

 python-pygments                               noarch                             1.4-1.fc14                                updates                             660 k

 python-setuptools                             noarch                             0.6.24-1.fc14                             updates                             345 k

 viewvc                                        noarch                             1.1.12-1.fc14                             updates                             743 k


Transaction Summary

======================================================================================================================================================================

Install       6 Package(s)


Total download size: 2.1 M

Installed size: 8.7 M

Downloading Packages:

Setting up and reading Presto delta metadata

Processing delta metadata

Package(s) data still to download: 2.1 M

(1/6): cvsgraph-1.6.1-8.fc12.i686.rpm                                                                                                          |  82 kB     00:01     

(2/6): mod_python-3.3.1-14.fc14.i686.rpm                                                                                                       | 290 kB     00:00     

(3/6): python-pygments-1.4-1.fc14.noarch.rpm                                                                                                   | 660 kB     00:00     

(4/6): python-setuptools-0.6.24-1.fc14.noarch.rpm                                                                                              | 345 kB     00:00     

(5/6): viewvc-1.1.12-1.fc14.noarch.rpm                                                                                                         | 743 kB     00:00     

(6/6): viewvc-httpd-1.1.12-1.fc14.noarch.rpm                                                                                                   | 8.0 kB     00:00     

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                                 344 kB/s | 2.1 MB     00:06     

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : mod_python-3.3.1-14.fc14.i686                                                                                                                  1/6 

  Installing     : cvsgraph-1.6.1-8.fc12.i686                                                                                                                     2/6 

  Installing     : python-setuptools-0.6.24-1.fc14.noarch                                                                                                         3/6 

  Installing     : python-pygments-1.4-1.fc14.noarch                                                                                                              4/6 

  Installing     : viewvc-1.1.12-1.fc14.noarch                                                                                                                    5/6 

  Installing     : viewvc-httpd-1.1.12-1.fc14.noarch                                                                                                              6/6 


Installed:

  viewvc-httpd.noarch 0:1.1.12-1.fc14                                                                                                                                 


Dependency Installed:

  cvsgraph.i686 0:1.6.1-8.fc12        mod_python.i686 0:3.3.1-14.fc14       python-pygments.noarch 0:1.4-1.fc14       python-setuptools.noarch 0:0.6.24-1.fc14      

  viewvc.noarch 0:1.1.12-1.fc14      


Complete!


의존성을 체크해서 알아서 잘 설치해주니 yum을 믿어주세요.

(아오 멀 이렇게 많이 설치해... )


암튼 이제 지워봅시다. 



3. yum erase


요건 사용 방법만 간단하게. 위에 설치한 거 지워죠는 아래와 같이 사용하시면 됩니다. 



Example : yum erase viewvc-httpd.noarch    <---- viewvc-httpd.noarch를 지워죠!!!!


간단 포스팅 마칩니다.



리눅스 관련 포스팅 모음


리눅스 파일 검색 (find), 파일 내부 문자열 검색 (grep 이용) : http://ngee.tistory.com/83

scp (공개키 암호화 사용, 패스워드 없이) : http://ngee.tistory.com/80

디스크 남은 용량, 메모리 사용량, 리눅스 작업관리자 알아보기 : http://ngee.tistory.com/76

리눅스 하드웨어 확인하기 : http://ngee.tistory.com/88

리눅스 테마 적용, 꾸미기 : http://ngee.tistory.com/90

리눅스 패널에 모니터링(CPU, Memory, Network) 추가하기 : http://ngee.tistory.com/100

리눅스 yum 사용법 : http://ngee.tistory.com/127

+ Recent posts