Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
 * network: mirrors.kernel.org
Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Available Groups:
   Additional Development
   Anaconda Tools
   Backup Client
   Backup Server
   Base
   CentOS Linux Client product core
   CentOS Linux ComputeNode product core
   CentOS Linux Server product core
   CentOS Linux Workstation product core
   Common NetworkManager submodules
   Compatibility Libraries
   Conflicts (Client)
   Conflicts (ComputeNode)
   Conflicts (Server)
   Conflicts (Workstation)
   Console Internet Tools
   Core
   DNS Name Server
   Debugging Tools
   Desktop Debugging and Performance Tools
   Development Tools
   Dial-up Networking Support
   Directory Client
   Directory Server
   E-mail Server
   Emacs
   FTP Server
   File and Storage Server
   Fonts
   GNOME
   GNOME Applications
   Graphical Administration Tools
   Graphics Creation Tools
   Guest Agents
   Guest Desktop Agents
   Hardware Monitoring Utilities
   High Availability
   Hyper-v platform specific packages
   Identity Management Server
   Infiniband Support
   Input Methods
   Internet Applications
   Internet Browser
   Java Platform
   KDE
   KDE Applications
   KDE Multimedia Support
   KVM platform specific packages
   Large Systems Performance
   Legacy UNIX Compatibility
   Legacy X Window System Compatibility
   Load Balancer
   Mainframe Access
   MariaDB Database Client
   MariaDB Database Server
   Multimedia
   Network File System Client
   Network Infrastructure Server
   Networking Tools
   Office Suite and Productivity
   PHP Support
   Performance Tools
   Perl Support
   Perl for Web
   Platform Development
   PostgreSQL Database Client
   PostgreSQL Database Server
   Print Server
   Printing Client
   Python
   Remote Desktop Clients
   Remote Management for Linux
   Resilient Storage
   Ruby Support
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management
   Technical Writing
   VMware platform specific packages
   Virtualization Client
   Virtualization Hypervisor
   Virtualization Platform
   Virtualization Tools
   Web Server
   Web Servlet Engine
   X Window System
Done

'IT > LINUX' 카테고리의 다른 글

[linux] 네트워크 개념 및 명령어  (0) 2020.01.02
[linux] 압축,해제  (0) 2020.01.01
[linux] YUM 정의  (0) 2019.12.29
[linux] rpm에 정의  (0) 2019.12.29
[linux] 사용자와 그룹관리 연습  (0) 2019.12.29

YUM(yYellowdog Updater Modified) 개념

- rpm명령의 패키지 의존성 문제를 완전하게 해결됨.

- 인터넷을 통하여 필요한 파일을 저장소(Repository)에서 자동으로 모두 다운로드 해서 설치하는 방식

 

YUM 기본적인 사용법

- 기본 설치 : yum install 패키지이름

 - 주로 "yum -y install 패키지이름"으로 사용

 - "-y"는 사용자의 확인을 모두 "yes"로 간주하고 설치를 진행한다는 옵션

- RPM파일 설치 : yum localinstall rpm이파일이름.rpm

- 업데이트 가능한 목록보기 : yum check-update

- 업데이트 : yum update 패키지이름

- 삭제 : yum remove 패키지이름

- 정보확인 yum info 패키지이름

 

->저장소의 url은 /etc/yum.repos.d/디렉토리

 

고급사용법

-패키지 그룹설치

yum groupinstall "패키지그룹이름"

 

-패키지 리스트 확인

yum list 패키지이름

 

-특정 파일이 속한 패키지 이름 확인

yum provides 파일이름

 

-GPG 키 검사 생략

yum install -nogpgcheck rpm파일이름.rpm

 

-기존 저장소 목록 지우기

yum clean all

 

yum 작동방식 설정파일

-/etc/yum.conf 파일 : 특별히 변경할 필요없음

-/etc/yum.repos.d/디렉토리

 - yum 명령을 입력했을 때 검색하게 되는 네트워크의 주소가 들어있는 여러개의 파일이 있음

-/etc/yum.repos.d/ 디렉토리의 *.repo 파일

 - CentOS-Base.repo: base, extra 만 남기고 updates 부분은 삭제했음,

즉 출시 시점의 원본 패키지만 설치됨

 

 

-현재 *.repo의 dvd에서 있는 패키지사용하기위한설정

dvd.repo설정하기

[dvd]

name=CentOS DVD

baseurl=file:///media/cdrom

gpgcheck=0

 

[network]

name=Network

baseurl= http://mirrors.kebaseurl=
   http://mirrors.kernel.org/centos/7/os/x86_64/
   htpp://mrrror.centos.org/centos/7/os/x86_64/
gpgcheck=0

'IT > LINUX' 카테고리의 다른 글

[linux] 압축,해제  (0) 2020.01.01
[linux] grouplist hidden 에 속해있는 그룹들  (0) 2019.12.29
[linux] rpm에 정의  (0) 2019.12.29
[linux] 사용자와 그룹관리 연습  (0) 2019.12.29
[linux] 의미전달  (0) 2019.12.29

자주 사용하는  rpm 명령어 옵션

rpm -Uvh 패키지파일이름.rpm

 

U - 패키지가 설치/업그레이드

v - 설치과정의 확인 

h- 설치진행과정을 "#"  마크로 화면에 출력

 

삭제 rpm -e 패키지이름

이미 설치된 패키지 질의

rpm -qa 패키지 이름 -> 패키지가 설치되었는지 확인

rpm -qf 파일의 절대경로 -> 파일이 어느 패키지에 포함된 것인지 확인

 

아직 설치되지 않은 rpm 파일에 대한 질의

rpm -qlp 패키지파일이름.rpm -> 패키지 파일에 어떤 파일들이 포함되었는지 확인

rpm -qip 패키지파일이름.rpm -> 패키지 파일의 상세정보

 

 

의존성 문제

A패키지가 설치되기 위해서 B패키지가 필요할 경우, rpm으로는 해결이 까다로움

-yum등장

 

 

 

'IT > LINUX' 카테고리의 다른 글

[linux] grouplist hidden 에 속해있는 그룹들  (0) 2019.12.29
[linux] YUM 정의  (0) 2019.12.29
[linux] 사용자와 그룹관리 연습  (0) 2019.12.29
[linux] 의미전달  (0) 2019.12.29
[linux] 기본명령어 cp  (0) 2019.12.29

 

useradd user1

tail -5 /etc/passwd <- 사용자저장위치

tail -5 /etc/shadow <- 비밀번호저장위치

tail -5 /etc/groups <- 그룹저장위치

 

userdel user1

goupadd centosGroup

useradd -g centosGroup user1

 

비밀번호변경

passwd user1

 

ls -l /home

 

yum -y install system-config-users

'IT > LINUX' 카테고리의 다른 글

[linux] YUM 정의  (0) 2019.12.29
[linux] rpm에 정의  (0) 2019.12.29
[linux] 의미전달  (0) 2019.12.29
[linux] 기본명령어 cp  (0) 2019.12.29
[linux] cd/dvd 마운트 명령어  (0) 2019.12.29

/etc/passwd 실행시 

guest:x:1000:1000:guest:/home/guest:/bin/bash

guest :아이디

x:비밀번호

1000 아이디번호

1000 그룹번호

guest :전체이름

/home/guest : 홈디렉토리

/bin/bash :기본셸

 

/etc/group

guest:x:1000:guest 

guest 그룹이름

1000 그룹의아이디

:guest 그룹사용자

 

최초실행시  유저생성시 그룹미설정시 자동으로 생성

useradd myuser

tail -5 /etc/passwd <- 실행시 보임

myuser:x:1001:1001::/home/myuser:/bin/bash

 

useradd,passwd,usermod,userdel

추가,지정및변경,속성변경,삭제

 

chage : 사용자의 암호를 주기적으로 변경하도록설정

chage -m 2 newuser

 

groups : 현재 사용자가 속한 그룹을 보여줌

 

groupadd : 새로운 그룹을 생성

groupadd newgroup

 

groupmod : 그룹의 속성을 변경

 

groupdel : 그룹을 삭제

gpasswdd : 그룹의 암호를 설정하거나, 그룹의 관리를 수행

 

 

 

'IT > LINUX' 카테고리의 다른 글

[linux] rpm에 정의  (0) 2019.12.29
[linux] 사용자와 그룹관리 연습  (0) 2019.12.29
[linux] 기본명령어 cp  (0) 2019.12.29
[linux] cd/dvd 마운트 명령어  (0) 2019.12.29
[linux] root 아이디 접속 차단하기  (0) 2019.12.27

+ Recent posts