Ask Your Question
0

Can not load RPM file

asked 2016-08-23 09:38:10 -0500

mmarusak gravatar image

updated 2016-08-23 14:46:19 -0500

Hi,

lets say, that I want to download rpm, that provides /lib64/ld-linux-x86-64.so.2.

If I try sudo dnf download /lib64/ld-linux-x86-64.so.2 I get error Can not load RPM file: /lib64/ld-linux-x86-64.so.2.. Adding --source does not help.

I tried successfully:

  1. Installing this package by sudo dnf install /lib64/ld-linux-x86-64.so.2

  2. sudo dnf download $(rpm -qf /lib64/ld-linux-x86-64.so.2)

Is there a better way than no.2? Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-08-23 13:51:23 -0500

florian gravatar image

updated 2016-08-23 13:53:55 -0500

To search which package provides a certain lib or file, you can do:

dnf whatprovides abc, in your case dnf whatprovides *ld-linux-x86* returns

glibc-2.22-17.fc23.x86_64 : The GNU libc libraries

(version of glibc may be different if you are on another Fedora release or architecture).

So, just run: dnf install glibc

edit flag offensive delete link more

Comments

Yes, I know I can use whatprovides. But my question was, how can I only download package that provides library, without firstly looking for package. I demonstrated, that installing can be done, without finding package that provides that library.

mmarusak gravatar imagemmarusak ( 2016-08-23 14:45:34 -0500 )edit

You gave answer to that question under 2. above. But of course, it will download the entire glibc rpm that contains the shared lib. You want to download only the lib? That doesn't exist as rpm package.

https://rpmfind.net/linux/RPM/fedora/...

florian gravatar imageflorian ( 2016-08-23 15:12:09 -0500 )edit
0

answered 2016-08-23 13:45:40 -0500

dokterw gravatar image

To install and .rpm it needs to be that, a .rpm.

Example: sudo dnf install whatever.rpm

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-08-23 09:38:10 -0500

Seen: 1,723 times

Last updated: Aug 23 '16