لینوکس و شبکه

لینوکس و شبکه
طبقه بندی موضوعی
آخرین مطالب
  • ۹۹/۱۱/۱۳
    java

دستور yum

شنبه, ۱۸ آذر ۱۳۹۶، ۰۳:۵۲ ب.ظ

نکته: با دستور yum repolist می توانید لیست مخازن را ببینید.

 

install:

Install a package or packages on your system(yum install package

update:

Update a package or packages on your system(yum update package

remove:

Remove the packages(yum remove package

groupinstall:

Install the packages in a group on your system(yum groupinstall "X Window System"

$ sudo yum groupinstall 'Development Tools'

 groupinfo:

Displays detailed information about a group.

$ yum group info "Development Tools"

grouplist:

Lists installed groups and groups that are available for installation.

yum  grouplist
OUTPUT:
Last metadata expiration check: 0:02:06 ago on Mon 21 Dec 2020 02:48:04 PM +0330.
Available Environment Groups:
   Server with GUI
   Server
   Workstation
   KDE Plasma Workspaces
   Virtualization Host
   Custom Operating System
Installed Environment Groups:
   Minimal Install
Installed Groups:
   Development Tools
Available Groups:
   Container Management
   .NET Core Development
   RPM Development Tools
   Graphical Administration Tools
   Headless Management
   Legacy UNIX Compatibility
   Network Servers
   Scientific Support
   Security Tools
   Smart Card Support
   System Tools
   Fedora Packager
   Xfce

 

groupupdate:

Update the packages in a group on your system(yum groupupdate "X Window System"

groupremove:

Remove the packages in a group from your system(yum groupremove "X Window System"

list:

List a package or groups of packages(yum list

⇒ display packages that is possible to install(yum list installed

⇒ display installed packages

check-update:

Check for available package updates(yum check-update

info:

Display details about a package or group of packages(yum info package

search

Search package details for the given string(yum search keyword

deplist:

List a package's dependencies(yum deplist package

group info:

show detail of group packages

option:

-y answer yes for all questions(yum -y install package

--enablerepo=repo enable one or more repositories(temporarily disabled) (wildcards allowed)(yum --enablerepo=repo install package

--disablerepo=repo disable one or more repositories(temporarily disabled) (wildcards allowed)(yum --disablerepo=<repoid> install package

--exclude=package exclude package(s) by name or glob(yum --exclude=package update

--noplugins disable Yum plugins(yum --noplugins update

 

1-Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage:

[yum-config-manager --disable <repoid>]  or  [subscription-manager repos --disable=<repoid>]

 

2-Configure the failing repository to be skipped, if it is unavailable.

Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

 
  • ۹۶/۰۹/۱۸
  • behrooz mohamadi nsasab