반응형

[Linux Setting] CentOS 6.9 Setting Guide : 패키지 관리: man 설치

1. 용도 및 목적

Linux 설치 및 다양한 테스트 환경을 만들기 위함, minimal로 설치하고 우연찮게 man 을 보려고 했으나, man 도 설치가 안되어있다. 간단하게 명령어나 패키지 메뉴얼 파일이라고 보면 된다.

2. 설치 환경

-O/S

 Windows 10 Pro , VirtualBox(CentOS6.9)

-H/W

 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz

 RAM 8GB

 SDD 256GB

3. 진행

-확인

[root@systemeng ~]# man 명령어
-bash: man: command not found

-설치

[root@systemeng ~]# yum install man
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
local                                                                    | 4.0 kB     00:00 ...
Resolving Dependencies
--> Running transaction check
---> Package man.x86_64 0:1.6f-39.el6 will be installed
--> Processing Dependency: lzma for package: man-1.6f-39.el6.x86_64
--> Running transaction check
---> Package xz-lzma-compat.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed
--> Processing Dependency: xz = 4.999.9-0.5.beta.20091007git.el6 for package: xz-lzma-compat-4.999.9-0.5.beta.20091007git.el6.x86_64
--> Running transaction check
---> Package xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================
 Package               Arch          Version                                 Repository    Size
================================================================================================
Installing:
 man                   x86_64        1.6f-39.el6                             local        265 k
Installing for dependencies:
 xz                    x86_64        4.999.9-0.5.beta.20091007git.el6        local        137 k
 xz-lzma-compat        x86_64        4.999.9-0.5.beta.20091007git.el6        local         16 k

Transaction Summary
================================================================================================
Install       3 Package(s)

Total download size: 418 k
Installed size: 887 k
Is this ok [y/N]: y
Downloading Packages:
------------------------------------------------------------------------------------------------
Total                                                           148 MB/s | 418 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : xz-4.999.9-0.5.beta.20091007git.el6.x86_64                                   1/3
  Installing : xz-lzma-compat-4.999.9-0.5.beta.20091007git.el6.x86_64                       2/3
  Installing : man-1.6f-39.el6.x86_64                                                       3/3
  Verifying  : xz-lzma-compat-4.999.9-0.5.beta.20091007git.el6.x86_64                       1/3
  Verifying  : man-1.6f-39.el6.x86_64                                                       2/3
  Verifying  : xz-4.999.9-0.5.beta.20091007git.el6.x86_64                                   3/3

Installed:
  man.x86_64 0:1.6f-39.el6

Dependency Installed:
  xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6
  xz-lzma-compat.x86_64 0:4.999.9-0.5.beta.20091007git.el6

Complete!

-확인(which 는 실행 파일 경로를 알려준다.)

[root@systemeng ~]# which man
/usr/bin/man
[root@systemeng ~]# man 명령어
정상적으로 출력된다.



반응형
반응형

[Linux Setting] CentOS 6.9 Setting Guide : 패키지 관리: yum group 확인

1. 용도 및 목적

Linux 설치 및 다양한 테스트 환경을 만들기 위함, 설치 패키지에 관련되어 좀더 효율적인 방안을 찾기위해 초기 설치 때 설치와 비교 하도록 한다. OS image 마운트 및 yum local 설정이 되있는 상태이다.

2. 설치 환경

-O/S

 Windows 10 Pro , VirtualBox(CentOS6.9)

-H/W

 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz

 RAM 8GB

 SDD 256GB

3. 확인

-우리는 minimal 설치를 진행하였고, 몇개의 그룹패키지가 설치 되었는지 확인해본다. 설치된것이 거의 없다. 

[root@systemeng ~]# yum grouplist
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
Installed Groups:  #설치된 패키지 (뭐 없음)
   E-mail server
   Security Tools
Available Groups: #설치 가능한 패키지 그룹
   Additional Development
   Backup Client
   Backup Server
   Base
   CIFS file server
   Client management tools
   Compatibility libraries
   Console internet tools
   Debugging Tools
   Desktop
   Desktop Debugging and Performance Tools
   Desktop Platform
   Desktop Platform Development
   Development tools
   Dial-up Networking Support
   Directory Client
   Directory Server
   Eclipse
   Emacs
   FCoE Storage Client
   FTP server
   Fonts
   General Purpose Desktop
   Graphical Administration Tools
   Graphics Creation Tools
   Guest Agents
   Hardware monitoring utilities
   High Availability
   High Availability Management
   Identity Management Server
   Infiniband Support
   Input Methods
   Internet Applications
   Internet Browser
   Java Platform
   KDE Desktop
   Large Systems Performance
   Legacy UNIX compatibility
   Legacy X Window System compatibility
   Load Balancer
   Mainframe Access
   Messaging Client Support
   MySQL Database client
   MySQL Database server
   NFS file server
   Network Infrastructure Server
   Network Storage Server
   Network file system client
   Networking Tools
   Office Suite and Productivity
   PHP Support
   Performance Tools
   Perl Support
   PostgreSQL Database client
   PostgreSQL Database server
   Print Server
   Printing client
   Remote Desktop Clients
   Resilient Storage
   Ruby Support
   SNMP Support
   Scalable Filesystems
   Scientific support
   Server Platform
   Server Platform Development
   Smart card support
   Storage Availability Tools
   System Management
   System administration tools
   TeX support
   Technical Writing
   TurboGears application framework
   Virtualization
   Virtualization Client
   Virtualization Platform
   Virtualization Tools
   Web Server
   Web Servlet Engine
   Web-Based Enterprise Management
   X Window System
   iSCSI Storage Client
Available Language Groups:
   Afrikaans Support [af]
   Albanian Support [sq]
   Amazigh Support [ber]
   Arabic Support [ar]
   Armenian Support [hy]
   Assamese Support [as]
   Azerbaijani Support [az]
   Basque Support [eu]
   Belarusian Support [be]
   Bengali Support [bn]
   Bhutanese Support [dz]
   Brazilian Portuguese Support [pt_BR]
   Breton Support [br]
   Bulgarian Support [bg]
   Catalan Support [ca]
   Chhattisgarhi Support [hne]
   Chichewa Support [ny]
   Chinese Support [zh]
   Coptic Support [cop]
   Croatian Support [hr]
   Czech Support [cs]
   Danish Support [da]
   Dutch Support [nl]
   English (UK) Support [en_GB]
   Esperanto Support [eo]
   Estonian Support [et]
   Ethiopic Support [am]
   Faroese Support [fo]
   Fijian Support [fj]
   Filipino Support [fil]
   Finnish Support [fi]
   French Support [fr]
   Frisian Support [fy]
   Friulian Support [fur]
   Gaelic Support [gd]
   Galician Support [gl]
   Georgian Support [ka]
   German Support [de]
   Greek Support [el]
   Gujarati Support [gu]
   Hebrew Support [he]
   Hiligaynon Support [hil]
   Hindi Support [hi]
   Hungarian Support [hu]
   Icelandic Support [is]
   Indonesian Support [id]
   Interlingua Support [ia]
   Inuktitut Support [iu]
   Irish Support [ga]
   Italian Support [it]
   Japanese Support [ja]
   Kannada Support [kn]
   Kashmiri Support [ks]
   Kashubian Support [csb]
   Kazakh Support [kk]
   Khmer Support [km]
   Kinyarwanda Support [rw]
   Konkani Support [kok]
   Korean Support [ko]
   Kurdish Support [ku]
   Lao Support [lo]
   Latin Support [la]
   Latvian Support [lv]
   Lithuanian Support [lt]
   Low Saxon Support [nds]
   Luxembourgish Support [lb]
   Macedonian Support [mk]
   Maithili Support [mai]
   Malagasy Support [mg]
   Malay Support [ms]
   Malayalam Support [ml]
   Maltese Support [mt]
   Manx Support [gv]
   Maori Support [mi]
   Marathi Support [mr]
   Mongolian Support [mn]
   Myanmar (Burmese) Support [my]
   Nepali Support [ne]
   Northern Sotho Support [nso]
   Norwegian Support [nb]
   Occitan Support [oc]
   Oriya Support [or]
   Persian Support [fa]
   Polish Support [pl]
   Portuguese Support [pt]
   Punjabi Support [pa]
   Romanian Support [ro]
   Russian Support [ru]
   Sanskrit Support [sa]
   Sardinian Support [sc]
   Serbian Support [sr]
   Sindhi Support [sd]
   Sinhala Support [si]
   Slovak Support [sk]
   Slovenian Support [sl]
   Somali Support [so]
   Southern Ndebele Support [nr]
   Southern Sotho Support [st]
   Spanish Support [es]
   Swahili Support [sw]
   Swati Support [ss]
   Swedish Support [sv]
   Tagalog Support [tl]
   Tajik Support [tg]
   Tamil Support [ta]
   Telugu Support [te]
   Tetum Support [tet]
   Thai Support [th]
   Tibetan Support [bo]
   Tsonga Support [ts]
   Tswana Support [tn]
   Turkish Support [tr]
   Turkmen Support [tk]
   Ukrainian Support [uk]
   Upper Sorbian Support [hsb]
   Urdu Support [ur]
   Uzbek Support [uz]
   Venda Support [ve]
   Vietnamese Support [vi]
   Walloon Support [wa]
   Welsh Support [cy]
   Xhosa Support [xh]
   Zulu Support [zu]
Done

-그룹에 포함된 패키지 확인

[root@systemeng ~]# yum groupinfo "X Window System"
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile

Group: X Window System
 Description: X Window System Support.
 Mandatory Packages:
   xorg-x11-drivers
   xorg-x11-server-Xorg
   xorg-x11-xauth
   xorg-x11-xinit
 Default Packages:
   firstboot
   glx-utils
   hal
   plymouth-system-theme
   spice-vdagent
   wacomexpresskeys
   wdaemon
   xorg-x11-server-utils
   xorg-x11-utils
   xvattr
 Optional Packages:
   xcb-util-image
   xcb-util-keysyms
   xcb-util-wm

-실제 OS 설치 할때의 패키지 모습과 위에 grouplist 와 group명을 한번씩 찾아 비교해보면 도움이 된다. 

(참고)minimal -> Customize now 로 확인했기 때문에 거의 모든 항목에 체크박스가 풀려있다. 

 

확인 완료



반응형
반응형

[Linux Setting] CentOS 6.9 Setting Guide : 패키지 관리: yum 설정

1. 용도 및 목적

Linux 설치 및 다양한 테스트 환경을 만들기 위함, 이부분은 꽤 중요하다.대부분 현장에서 패키지를 온라인 저장소에서 받질 못하기에 우리처럼 minimal로 설치 된 서버라면 OS 이미지 마운트 후에 필요한 패키지를 설치해야한다. 그런데!! 문제는 리눅스는 의존성 덩어리라 rpm 한개 한개 설치 하려고 하면 솔직히 거의 불가능에 가까워진다. 이때 사용하는 것이 yum이라고 간단하게 이해하면 된다. 

2. 설치 환경

-O/S

 Windows 10 Pro , VirtualBox(CentOS6.9)

-H/W

 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz

 RAM 8GB

 SDD 256GB

3. 진행

-CentOS6.9 mount 

# mount /dev/sr0 /media/dvdrom/

mount: block device /dev/sr0 is write-protected, mounting read-only

-mount 상태 확인

[root@systemeng ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       35G  700M   33G   3% /
tmpfs                 939M     0  939M   0% /dev/shm
/dev/sda1             477M   40M  413M   9% /boot
/dev/sr0              3.7G  3.7G     0 100% /media/dvdrom

-yum repository 설정 - 기본 저장소 백업

# cd /etc/yum.repos.d/
# ls
CentOS-Base.repo       CentOS-fasttrack.repo  CentOS-Vault.repo
CentOS-Debuginfo.repo  CentOS-Media.repo
# mkdir repobackup
# mv * repobackup/
# ls
repobackup

-현재 패키지가 0임을 확인

# yum repolist
Loaded plugins: fastestmirror
repolist: 0

-local repository 생성

# vi /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=file:///media/dvdrom
gpgcheck=0
enabled=1

-현재 패키지 다시 확인

# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
local                                                              | 4.0 kB     00:00 ...
local/primary_db                                                   | 4.7 MB     00:00 ...
repo id                                    repo name                                status
local                                      local                                    6,706
repolist: 6,706

완료



반응형

+ Recent posts