Friday, November 12, 2021

[SOLVED] to what location on disk does yum installs python packages by default?

Issue

I installed python package python2-rpdb.noarch on centos using

sudo yum install python2-rpdb.noarch --installroot='/some/local/path' -v -y it gets installed by I cannot find anything on the path /some/local/path/

I cannot use pip as I do not have permission to use pip or otherwise pip is the way to go


Solution

I got it by little bit of digging ,

I searched like this :

rpm -ql python2-rpdb-0.1.5-2el7.1.noarch

its installed in the /usr/lib/python2.7/site-packages folder

or in /usr/lib64/python2.7/



Answered By - Chang Zhao