# Linux Commands (Centos7)
## yum
### List packages from a specific repository
List the repos you have:
```
yum repolist
```
Copy past name into `--enablerepos` and it'll only name the packages from that rep
```
yum --disablerepos="*" --enablerepos="repo" list available
```
This is handy when you have unexplained "No package available" when docs online clearly suggest that it does exist. Example: Microsoft has a command line tool `sqlcmd` that comes in a package called `mssql-tools`. Microsoft states the repos that you load into yum have this package. It clearly does not anymore. After using the above command I found that they replaced it with `mssql-cli`. I'm not sure why the docs aren't updated but clearly this is a new development. I was scratching my head for an hour or so on this looking up on the google to find out what happened. I guess they haven't updated their docs to reflect this.