티스토리 뷰

LInux 1

12. 패키지 관리 정리 Linux

양곰3 2017. 4. 11. 09:34

패키지 관리


1. 소스 코드 설치

1) 소스 코드 다운로드

#>wget 주소


2) 압축 해제

#>tar xvfJ Python-3.6.1.tar.xz

or

#>xz -d  Python-3.6.1.tar.xz

#>tar xvf  Python-3.6.1.tar


3) 컴파일

#>cd  Python-3.6.1

#>./configure -> 확인

#>make -> 설치

#>make install

( #>./python -V , #>python3 -V ) -> 버전 확인


2. 패키지

- redhat : rpm

( 데비안 : dpkg )


1) RPM 다운로드

#>wget http://nmap.org/dist/ncat-7.12-1.x86_64.rpm


2) RPM 패키지 확인

#>rpm -qa | grep <name> -> 패키지 확인

#>rpm -qa | grep ncat


3) RPM 패키지 삭제

#>rpm -e <name>

#>rpm -e nmap-ncat-6.40-7.e17.x86_64


4) RPM 패키지 설치

#>cd ~

#>rpm -ivh <name> ->패키지 설치

#>rpm -ivh ncat-7.12-1.x86_64.rpm


5) RPM 패키지 업데이트

#>cd ~

#>wget https://nmap.org/dist/nmap-7.12-1.x86_64.rpm

#>rpm -Uvh <name>

#>rpm -Uvh nmap-7.12-1.x86_64.rpm

#>rpm -qa | grep nmap


3. 패키지 관리 도구 : YUM

1) 패키지 검색

#>yum search <name>

#>yum search wireshark


2) 패키지 설치

#>yum install <name>

#>yum install wireshark.x86_64

is this ok [y/d/n]:

#>yum install -y wireshark.x86_64

-y --> 물어보면 무조건 yes


3) 패키지 확인

#>rpm -qa | grep wireshark

#>yum list installed | grep wireshark

#>tshark -V


4) 패키지 업데이트

#>yum update <name>

#>rpm -qa | grep openssl

openssl-1.0.1e-42.el7.9.x86_64


#>yum install -y openssl.x86_64

#>rpm -qa | grep openssl

openssl


5) 패키지 삭제

#>yum erase <name>

#>yum erase wireshark.x86_64


ex) GNOME Desktop 설치

#>yum group list

#>yum group install <group_name>

#>yum group install "GNOME Desktop"



'LInux 1' 카테고리의 다른 글

14. 링크파일 정리 Linux  (0) 2017.04.11
13. 검색기능 정리 LInux  (0) 2017.04.11
11. 백업과 복구 정리 Linux  (0) 2017.04.11
10. 네트워크 및 압축 정리 Linux  (0) 2017.04.11
9. 패스워드 관리 정리 Linux  (0) 2017.04.10
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함