yum: update formatting
This commit is contained in:
parent
3be696141e
commit
ccd97452a6
22
yum.md
22
yum.md
|
@ -5,9 +5,9 @@ layout: 2017/sheet
|
|||
updated: 2024-02-07
|
||||
---
|
||||
|
||||
## Queries
|
||||
## Commands
|
||||
|
||||
### Help and Lists
|
||||
### Help and lists
|
||||
|
||||
```bash
|
||||
yum help # Display yum commands and options
|
||||
|
@ -17,7 +17,7 @@ yum list kernel # List installed and available kernel packages
|
|||
yum info vsftpd # List info about vsftpd package
|
||||
```
|
||||
|
||||
### Searching and Dependencies
|
||||
### Searching and dependencies
|
||||
|
||||
```bash
|
||||
yum deplist nfs-utils # List dependencies for nfs-utils
|
||||
|
@ -25,22 +25,22 @@ yum provides "*bin/top" # Show package containing top command
|
|||
yum search samba # Find packages with samba in name or description
|
||||
```
|
||||
|
||||
### Updating and Security
|
||||
### Updating and security
|
||||
|
||||
```bash
|
||||
yum updateinfo security # Get info on available security updates
|
||||
yum update --security # Apply security-related package updates
|
||||
```
|
||||
|
||||
## Managing Repositories
|
||||
### Managing repositories
|
||||
|
||||
```bash
|
||||
yum repolist # Display enabled software repositories
|
||||
yum repolist # Display enabled software repositories
|
||||
yum repoinfo rhel-7-server-rpms # See info on specific repo
|
||||
yum repo-pkgs my-rpms list # List packages from a specific repo
|
||||
```
|
||||
|
||||
## Installation and Upgrades
|
||||
### Installation and upgrades
|
||||
|
||||
```bash
|
||||
yum install vsftpd # Install the vsftpd package
|
||||
|
@ -49,23 +49,23 @@ yum downgrade abc # Downgrade the abc package to an earlier version
|
|||
yum autoremove httpd # Remove httpd and unneeded packages
|
||||
```
|
||||
|
||||
## Package Groups
|
||||
### Package groups
|
||||
|
||||
```bash
|
||||
yum groupinstall "Web server" # Install Web Server packages
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
### Troubleshooting
|
||||
|
||||
```bash
|
||||
yum history list # List all yum transactions
|
||||
yum clean packages # Delete packages saved in cache
|
||||
```
|
||||
|
||||
## Popular Options
|
||||
### Popular options
|
||||
|
||||
```bash
|
||||
-y # Assume yes if prompted
|
||||
--disablerepo=epel # Disable a specific repo for a command
|
||||
--downloadonly # Download package to cache but don't install
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue