How to find SRPM for installed binaries.

General support questions
Post Reply
afewgoodman
Posts: 97
Joined: 2019/12/11 03:51:58

How to find SRPM for installed binaries.

Post by afewgoodman » 2020/04/20 08:59:57

Hi,

I hope to know how I can find SRPM for installed binaries with rpm command or yum command or so.

BR.

User avatar
TrevorH
Forum Moderator
Posts: 29457
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to find SRPM for installed binaries.

Post by TrevorH » 2020/04/20 09:15:58

rpm -qi $package tells you which SRPM was used to build it. Also yumdownloader --source --url $package will - most of the time - give you the url of the SRPM itself (or download it if you omit --url).
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

afewgoodman
Posts: 97
Joined: 2019/12/11 03:51:58

Re: How to find SRPM for installed binaries.

Post by afewgoodman » 2020/04/21 02:00:37

Hi Trevor,

Many thanks. :)

be careful with COVID-19 and take care of yourself.

BR.

afewgoodman
Posts: 97
Joined: 2019/12/11 03:51:58

Re: How to find SRPM for installed binaries.

Post by afewgoodman » 2020/04/21 09:22:51

Hi Trevor,

If I could not find srpm in the vault site, how can I find srpm for those packages?

For example, container-storage-setup package.

BR.

User avatar
TrevorH
Forum Moderator
Posts: 29457
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to find SRPM for installed binaries.

Post by TrevorH » 2020/04/21 09:23:45

What SRPM are we talking about?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

afewgoodman
Posts: 97
Joined: 2019/12/11 03:51:58

Re: How to find SRPM for installed binaries.

Post by afewgoodman » 2020/04/22 00:59:32

TrevorH wrote:
2020/04/21 09:23:45
What SRPM are we talking about?
When I tried as following, I can see SRPM for container-storage-setup.

bchoi@localhost ~]$ yum list available | grep container-storage-setup
container-storage-setup.noarch 0.11.0-2.git5eaf76c.el7 extras
[bchoi@localhost ~]$ yumdownloader --source --url container-storage-setup
Loaded plugins: fastestmirror, langpacks
Enabling updates-source repository
Enabling base-source repository
Enabling extras-source repository
Enabling docker-ce-stable-source repository
Enabling epel-source repository
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 9.4 kB 00:00:00
epel-source/x86_64/metalink | 9.3 kB 00:00:00
* base: mirror.kakao.com
* epel: mirrors.aliyun.com
* epel-source: mirrors.aliyun.com
* extras: mirror.kakao.com
* updates: mirror.kakao.com
base | 3.6 kB 00:00:00
base-source | 2.9 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
docker-ce-stable-source | 3.5 kB 00:00:00
extras | 2.9 kB 00:00:00
extras-source | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
updates-source | 2.9 kB 00:00:00
No source RPM found for container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch
Nothing to download
[bchoi@localhost ~]$

User avatar
TrevorH
Forum Moderator
Posts: 29457
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to find SRPM for installed binaries.

Post by TrevorH » 2020/04/22 09:03:30

It's correct, the SRPM isn't there. Please raise a bug on bugs.centos.org for it.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

afewgoodman
Posts: 97
Joined: 2019/12/11 03:51:58

Re: How to find SRPM for installed binaries.

Post by afewgoodman » 2020/04/23 05:15:19

TrevorH wrote:
2020/04/22 09:03:30
It's correct, the SRPM isn't there. Please raise a bug on bugs.centos.org for it.
Reported it !!

https://bugs.centos.org/view.php?id=17278

BR.

Post Reply

Return to “CentOS 7 - General Support”