yum list 中の@(アットマーク)の意味

snow
2022-08-26
snow
2022-08-26
yum list 中に@(アットマーク)がありまして、
その意味を調べてみました。

man yum の内容確認してみました。

```
LIST OPTIONS
The following are the ways which you can invoke yum in list mode. Note that all list commands include information on the
version of the package.

OUTPUT

The format of the output of yum list is:

name.arch [epoch:]version-release repo or @installed-from-repo

Note that if the repo cannot be determined, "installed" is printed instead.
```
結論 → インストール済のものは @ が付いています。

検証:
検証環境は
サーバ AWS EC2
OS Amazon Linux2

インストール済 Apache 2.4.46 
最新版 Apache 2.4.52

```
# yum list | grep httpd

httpd.x86_64 2.4.46-1.amzn2 @amzn2-core
httpd-filesystem.noarch 2.4.46-1.amzn2 @amzn2-core
httpd-tools.x86_64 2.4.46-1.amzn2 @amzn2-core

httpd.x86_64 2.4.52-1.amzn2 amzn2-core
httpd-filesystem.noarch 2.4.52-1.amzn2 amzn2-core
httpd-tools.x86_64 2.4.52-1.amzn2 amzn2-core
```

インストール済 無し
最新版 Apache 2.4.52

```
# yum list |grep httpd

httpd.x86_64 2.4.52-1.amzn2 amzn2-core
httpd-devel.x86_64 2.4.52-1.amzn2 amzn2-core
httpd-filesystem.noarch 2.4.52-1.amzn2 amzn2-core
```