Ask Your Question

searching for python modules same as for perll using dnf

asked 2018-03-01 04:51:39 -0600

damian gravatar image

When installing perl modules I can use dnf install 'perl(Module)' Is there an equivalent for python? I tried python(module) but it doesn't work.

dnf install 'python(six)' Last metadata expiration check: 0:05:32 ago on Thu 01 Mar 2018 11:37:54 AM CET. No match for argument: python(six) Error: Unable to find a match

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-03-01 15:20:18 -0600

florian gravatar image

updated 2018-03-02 13:39:22 -0600

You are probably looking for the pip package manager:

pip search searchterm

for example

pip search six

Just type pip to see a list of all available commands.

Though, you can find many python related packages using dnf: dnf search python, example: dnf search python | grep six

edit flag offensive delete link more

answered 2018-03-03 02:23:28 -0600

villykruse gravatar image

The dnf method is:

dnf provides 'python*(six)'

It has a wildcard '*' because there are python2 as well as pyton3 versions available, and they are different.

What each package actually provides are these:

 dnf repoquery --provides python2-six
        python-six = 1.11.0-1.fc27
        python2-six = 1.11.0-1.fc27
        python2.7dist(six) = 1.11.0
        python2dist(six) = 1.11.0

 dnf repoquery --provides python3-six
        python3-six = 1.11.0-1.fc27
        python3.6dist(six) = 1.11.0
        python3dist(six) = 1.11.0

To install python3 version of six you can run

dnf install 'python3dist(six)'


Be careful when using pip. It can break the dnf command in such a way that it is hard to recover from.

edit flag offensive delete link more

Question Tools


Asked: 2018-03-01 04:51:39 -0600

Seen: 56 times

Last updated: Mar 03 '18