Repository Commands: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== CentOS 7 == === Enable Repository === # List all Repositories ## <tt>'''# yum repolist all'''</tt> # Initialize disk for use by the LVM #: <tt>'''# pvcreate /dev/<physical_...")
 
No edit summary
Line 3: Line 3:
# List all Repositories
# List all Repositories
## <tt>'''# yum repolist all'''</tt>
## <tt>'''# yum repolist all'''</tt>
# Initialize disk for use by the LVM
# Enable repository
#: <tt>'''# pvcreate /dev/<physical_volume#>'''</tt>
#: <tt>'''# yum-config-manager --enable <repository>'''</tt>
# If creating a new volume group
# Verify repository is enabled
#: <tt>'''# vgcreate <volume_group> /dev/<physical_volume#>'''</tt>
#: <tt>'''yum repolist'''</tt>
# If adding to an existing volume group
#: <tt>'''# vgextend <volume_group> /dev/<physical_volume#>'''</tt>

Revision as of 10:13, 30 October 2021

CentOS 7

Enable Repository

  1. List all Repositories
    1. # yum repolist all
  2. Enable repository
    # yum-config-manager --enable <repository>
  3. Verify repository is enabled
    yum repolist