Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:install_and_update_software_packages_from_red_hat_network_a_remote_repository_or_from_the_local_file_system [2016/02/29 21:54] billdozor [RPM (Redhat Package Manager)] |
linux_wiki:install_and_update_software_packages_from_red_hat_network_a_remote_repository_or_from_the_local_file_system [2018/04/29 22:19] billdozor [Yum Groups] |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/ | + | Managing software packages and repos. |
---- | ---- | ||
- | === Yum and Packages === | + | ===== Yum and Packages |
Check to see if updates are available | Check to see if updates are available | ||
Line 14: | Line 14: | ||
</ | </ | ||
+ | \\ | ||
Update all packages, assume yes to all questions | Update all packages, assume yes to all questions | ||
<code bash> | <code bash> | ||
Line 19: | Line 20: | ||
</ | </ | ||
+ | \\ | ||
Search package name and summary for " | Search package name and summary for " | ||
<code bash> | <code bash> | ||
Line 24: | Line 26: | ||
</ | </ | ||
+ | \\ | ||
View package details | View package details | ||
<code bash> | <code bash> | ||
Line 29: | Line 32: | ||
</ | </ | ||
+ | \\ | ||
Install Apache Web Server | Install Apache Web Server | ||
<code bash> | <code bash> | ||
Line 34: | Line 38: | ||
</ | </ | ||
+ | \\ | ||
List all installed package | List all installed package | ||
<code bash> | <code bash> | ||
Line 39: | Line 44: | ||
</ | </ | ||
+ | \\ | ||
What package created a file (or directory) | What package created a file (or directory) | ||
<code bash> | <code bash> | ||
Line 44: | Line 50: | ||
</ | </ | ||
+ | \\ | ||
Uninstall package | Uninstall package | ||
<code bash> | <code bash> | ||
Line 49: | Line 56: | ||
</ | </ | ||
+ | \\ | ||
Clean yum cache files | Clean yum cache files | ||
<code bash> | <code bash> | ||
Line 54: | Line 62: | ||
</ | </ | ||
+ | \\ | ||
List repositories | List repositories | ||
<code bash> | <code bash> | ||
Line 59: | Line 68: | ||
</ | </ | ||
- | === Yum Groups === | + | ---- |
+ | |||
+ | ==== Yum Groups | ||
List available groups | List available groups | ||
Line 66: | Line 77: | ||
</ | </ | ||
+ | \\ | ||
List available groups, including hidden | List available groups, including hidden | ||
<code bash> | <code bash> | ||
Line 72: | Line 84: | ||
* This includes most of the Virtualization Groups | * This includes most of the Virtualization Groups | ||
+ | \\ | ||
List all packages that belong to the " | List all packages that belong to the " | ||
<code bash> | <code bash> | ||
Line 77: | Line 90: | ||
</ | </ | ||
**Yum group info markers meanings** | **Yum group info markers meanings** | ||
- | * " | + | * " |
+ | * (Eg. "yum group install foo -pkgA" or "yum group install foo; yum remove pkgA" … this will have pkgA marked as ' | ||
* " | * " | ||
* " " = Package is installed, but wasn't installed via the group (so "group remove foo" | * " " = Package is installed, but wasn't installed via the group (so "group remove foo" | ||
* " | * " | ||
+ | \\ | ||
Install the Security Tools group | Install the Security Tools group | ||
<code bash> | <code bash> | ||
Line 87: | Line 102: | ||
</ | </ | ||
+ | \\ | ||
To undo a group install: | To undo a group install: | ||
Line 99: | Line 115: | ||
</ | </ | ||
+ | \\ | ||
2) [Optional] View detailed information about ID 25 (Security Tools group install) | 2) [Optional] View detailed information about ID 25 (Security Tools group install) | ||
<code bash> | <code bash> | ||
Line 122: | Line 139: | ||
</ | </ | ||
+ | \\ | ||
3) Undo the group install (removes installed packages) | 3) Undo the group install (removes installed packages) | ||
<code bash> | <code bash> | ||
Line 129: | Line 147: | ||
---- | ---- | ||
- | ==== RPM (Redhat Package Manager) ==== | + | ===== RPM (Redhat Package Manager) |
Use yum downloader to download RPM | Use yum downloader to download RPM | ||
Line 136: | Line 154: | ||
</ | </ | ||
+ | \\ | ||
Install package | Install package | ||
<code bash> | <code bash> | ||
Line 144: | Line 163: | ||
* h - hash progress bar | * h - hash progress bar | ||
+ | \\ | ||
List all installed rpm packages | List all installed rpm packages | ||
<code bash> | <code bash> | ||
Line 151: | Line 171: | ||
* a - all | * a - all | ||
+ | \\ | ||
List all files installed as part of package | List all files installed as part of package | ||
<code bash> | <code bash> | ||
Line 157: | Line 178: | ||
* l - list files | * l - list files | ||
+ | \\ | ||
List all files that are part of a local RPM file that is not installed yet | List all files that are part of a local RPM file that is not installed yet | ||
<code bash> | <code bash> | ||
Line 162: | Line 184: | ||
</ | </ | ||
+ | \\ | ||
List documentation files for a package | List documentation files for a package | ||
<code bash> | <code bash> | ||
Line 168: | Line 191: | ||
* d - documentation files | * d - documentation files | ||
+ | \\ | ||
List configuration files for a package | List configuration files for a package | ||
<code bash> | <code bash> | ||
Line 174: | Line 198: | ||
* c - configuration files | * c - configuration files | ||
+ | \\ | ||
Remove package | Remove package | ||
<code bash> | <code bash> | ||
Line 180: | Line 205: | ||
* -e => erase | * -e => erase | ||
+ | \\ | ||
Install local rpm, auto install dependencies | Install local rpm, auto install dependencies | ||
<code bash> | <code bash> | ||
Line 188: | Line 214: | ||
---- | ---- | ||
- | ==== Managing Repositories ==== | + | ===== Managing Repositories |
Repo config files location | Repo config files location | ||
Line 194: | Line 220: | ||
* file must end in " | * file must end in " | ||
+ | \\ | ||
Show all enabled repos | Show all enabled repos | ||
<code bash> | <code bash> | ||
Line 199: | Line 226: | ||
</ | </ | ||
+ | \\ | ||
Show all enabled and disabled repos | Show all enabled and disabled repos | ||
<code bash> | <code bash> | ||
Line 204: | Line 232: | ||
</ | </ | ||
- | === yum config manager | + | ---- |
+ | |||
+ | ==== Yum Config Manager ==== | ||
Add new repo | Add new repo | ||
<code bash> | <code bash> | ||
Line 210: | Line 240: | ||
</ | </ | ||
+ | \\ | ||
Disable repo using yum-config-manager and repo id (get id from "yum repolist" | Disable repo using yum-config-manager and repo id (get id from "yum repolist" | ||
<code bash> | <code bash> | ||
Line 215: | Line 246: | ||
</ | </ | ||
+ | \\ | ||
Remove repo | Remove repo | ||
<code bash> | <code bash> | ||
Line 220: | Line 252: | ||
</ | </ | ||
- | === repos via config files === | + | ---- |
+ | |||
+ | ==== Repos via Config Files ==== | ||
Add new repo; create new file in / | Add new repo; create new file in / | ||
<code bash> | <code bash> | ||
Line 233: | Line 268: | ||
* Fedora EPEL 7 => repo name | * Fedora EPEL 7 => repo name | ||
+ | \\ | ||
Disable repo by editing repo file | Disable repo by editing repo file | ||
<code bash> | <code bash> | ||
Line 250: | Line 286: | ||
</ | </ | ||
+ | \\ | ||
Create local repo config file | Create local repo config file | ||
<code bash> | <code bash> | ||
Line 264: | Line 301: | ||
---- | ---- | ||
- | ==== Configure The GPG Key ==== | + | ===== Configure The GPG Key ===== |
Download gpg key from repo | Download gpg key from repo | ||
Line 272: | Line 309: | ||
</ | </ | ||
+ | \\ | ||
Add gpg check and key to repo config | Add gpg check and key to repo config | ||
<code bash> | <code bash> |