IT/리눅스마스터1급

yum 대화형 모드(shell mode) 사용하기

알콩달콩아빠 2023. 8. 19. 21:11
728x90
반응형

yum 대화형 모드(shell mode) 사용하기

 

 

 

 

 

 

 

지금까지 우리는 리눅스 쉘상태에서 yum명령어를 이용하여 패키지관리를 수행하는 다양한 방법들을 배워보았습니다.

 

 

 

 

 

 

 이번에는 쉘명령어로 yum 실행하는 것이 아니라 yum 전용명령어 상태에서 yum전용명령어를 실행하여 패키지를 관리하는 방법에 대해서 알아보겠습니다.

 

 

 

 

 

 

 

 

 

우리는 이런 yum전용상태를 “yum shell상태 또는 “yum shell모드라고 말합니다.

 

 

 

 

 

 

 어떤 이름을 사용하든 상관없지만 yum shell상태에서 사용하는 명령어들을 정확하게 사용할  있다는 것이 중요합니다.

 

 

 

 

 

 

 하지만, 크게 걱정하실 것이 없습니다.

 

 

 

 

 

 

 “yum shell”상태에서 사용하는 yum전용명령어들은 우리가 이미 앞에서 모두 배운 것들입니다.

 

 

 

 

 

 

 , 지금까지 쉘상태에서 사용했던 명령어 사용방법은 “yum 전용명령어 패키지명 같은 형식을 사용 하였습니다.

 

 

 

 

 

 

 이런 형식에서 yum자만 빼고 사용하면 이것이 바로 “yum shell”모드에서 사용하는 yum전용명령어가 됩니다.

 

 

 

 

 

 

 아주 쉽습니다.

 

 

 

 

 

 

 

 

 

다음은 “yum shell”모드를 실행한 예입니다.

 

 

 

 

 

 

 쉘프롬프트에서 “yum shell”이라고만 실행하면 됩니다.

 

 

 

 

 

 

 그러면 아래 예와 같이 “>”라는 표시를 해줍니다.

 

 

 

 

 

 

 이것이 바로 “yum shell 프롬프트입니다.

 

 

 

 

 

 

 “>”다음에 yum전용명령어들을 사용하면 됩니다.

 

 

 

 

 

 

 

 

 

[root@su250 Packages]# yum shell


Failed to set locale, defaulting to C


Loaded plugins: refresh-packagekit


Setting up Yum Shell


> help


Usage: yum [options] COMMAND






List of Commands:






check-update   Check for available package updates


clean          Remove cached data


deplist        List a package's dependencies


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


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










    Shell specific arguments:


      config - set config options


      repository (or repo) - enable/disable repositories


      transaction (or ts) - list, reset or run the transaction set


      run - run the transaction set


      exit or quit - exit the shell


   


>
 

 

 

 

 

 

 

 

 

위의 예에서는 “yum shell”상태에서 yum전용명령어인 “help” 실행한 예입니다.

 

 

 

 

 

 

 이제 우리는 “>”상태에서 지금까지 배운 yum명령어들을 사용할  있습니다.

 

 

 

 

 

 

 

 

 

>


> quit


Leaving Shell


[root@su250 Packages]#


[root@su250 Packages]#

 

 

 

 

 

 

 

 

그리고 위의 예와 같이 “yum shell”모드에서 빠져나오려면 “quit” 실행하면 됩니다.

 

출처 : yum 대화형 모드(shell mode) 사용하기 > 강좌 | 클라우드포털 (linux.co.kr)

728x90
반응형