reworking content
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good

This commit is contained in:
2025-06-19 10:03:08 -04:00
parent 611d0816cc
commit 7d9171c854
192 changed files with 2234 additions and 2362 deletions

View File

@@ -0,0 +1,80 @@
# The `apt` command
`apt` (Advantage package system) command is used for interacting with `dpkg` (packaging system used by debian). There is already the `dpkg` command to manage `.deb` packages. But `apt` is a more user-friendly and efficient way.
In simple terms `apt` is a command used for installing, deleting and performing other operations on debian based Linux.
You will be using the `apt` command mostly with `sudo` privileges.
### Installing packages:
`install` followed by `package_name` is used with `apt` to install a new package.
##### Syntax:
```
sudo apt install package_name
```
##### Example:
```
sudo apt install g++
```
This command will install g++ on your system.
### Removing packages:
`remove` followed by `package_name` is used with `apt` to remove a specific package.
##### Syntax:
```
sudo apt remove package_name
```
##### Example:
```
sudo apt remove g++
```
This command will remove g++ from your system.
### Searching for a package:
`search` followed by the `package_name` used with apt to search a package across all repositories.
##### Syntax:
```
apt search package_name
```
note: sudo not required
##### Example:
```
apt search g++
```
### Removing unused packages:
Whenever a new package that depends on other packages is installed on the system, the package dependencies will be installed too. When the package is removed, the dependencies will stay on the system. This leftover packages are no longer used by anything else and can be removed.
##### Syntax:
```
sudo apt autoremove
```
This command will remove all unused from your system.
### Updating package index:
`apt` package index is nothing but a database that stores records of available packages that are enabled on your system.
##### Syntax:
```
sudo apt update
```
This command will update the package index on your system.
### Upgrading packages:
If you want to install the latest updates for your installed packages you may want to run this command.
##### Syntax:
```
sudo apt upgrade
```
The command doesn't upgrade any packages that require removal of installed packages.
If you want to upgrade a single package, pass the package name:
##### Syntax:
```
sudo apt upgrade package_name
```
This command will upgrade your packages to the latest version.

View File

@@ -0,0 +1,61 @@
# The `yum` command
The `yum`command is the primary package management tool for installing, updating, removing, and managing software packages in Red Hat Enterprise Linux. It is an acronym for _`Yellow Dog Updater, Modified`_.
`yum` performs dependency resolution when installing, updating, and removing software packages. It can manage packages from installed repositories in the system or from .rpm packages.
### Syntax:
```[linux]
yum -option command
```
### Examples:
1. To see an overview of what happened in past transactions:
```[linux]
yum history
```
2. To undo a previous transaction:
```[linux]
yum history undo <id>
```
3. To install firefox package with 'yes' as a response to all confirmations
```[linux]
yum -y install firefox
```
4. To update the mysql package it to the latest stable version
```[linux]
yum update mysql
```
### Commonly used commands along with yum:
| **Command** | **Description** |
| :------------- | :------------------------------------------------ |
| `install` | Installs the specified packages |
| `remove` | Removes the specified packages |
| `search` | Searches package metadata for keywords |
| `info` | Lists the description |
| `update` | Updates each package to the latest version |
| `repolist` | Lists repositories |
| `history` | Displays what has happened in past transactions |
| `groupinstall` | To install a particular package group |
| `clean` | To clean all cached files from enabled repository |
### Additional Flags and their Functionalities:
| **Short Flag** | **Long Flag** | **Description** |
| :---------------- | :-------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-C` | `--cacheonly` | Runs entirely from system cache, doesnt update the cache and use it even in case it is expired. |
| <center>-<center> | `--security` | Includes packages that provide a fix for a security issue. Applicable for the upgrade command. |
| `-y` | `--assumeyes` | Automatically answer yes for all questions. |
| <center>-<center> | `--skip-broken` | Resolves depsolve problems by removing packages that are causing problems from the transaction. It is an alias for the strict configuration option with value False. |
| `-v` | `--verbose` | Verbose operation, show debug messages. |