> For the complete documentation index, see [llms.txt](https://evansastre.gitbook.io/srvops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://evansastre.gitbook.io/srvops/linux/linux-fundamental/basic-shell-command/installing-software.md).

# yum & rpm - Installing software

## yum&#x20;

```
yum search string  #Search for string
yum info [package] #Display info
yum install [-y]   #package Install package
yum remove package #Remove package
```

## rpm

```
rpm -qa
#List all installed packages.
rpm -qf /path/to/file
#List the file’s package.

rpm -ql package
#List package’s files.
rpm -ivh package.rpm
#Install package.
rpm -e package
#Erase (uninstall) package.
```

## APT

```
apt-cache search string
#Search for string.
apt-get install [-y] package
#Install package.
apt-get remove package
#Remove package, leaving configuration.
apt-get purge package
#Remove package, deleting configuration.
apt-cache show package
#Display information about package.
```

## dpkg

```
dpkg -l
#List installed packages.
dpkg -S /path/to/file
#List file’s package.
dpkg -L package
#List all files in package.
dpkg -i package.deb
#Install package.
```
