How can I know a software's install position in my CentOS?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
In my CentOS7 there are multi python, I check the default python version by:
# python3 -V
Python 3.6.0a1
but how can I know its position in my CentOS?
centos python
add a comment |Â
up vote
1
down vote
favorite
In my CentOS7 there are multi python, I check the default python version by:
# python3 -V
Python 3.6.0a1
but how can I know its position in my CentOS?
centos python
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
In my CentOS7 there are multi python, I check the default python version by:
# python3 -V
Python 3.6.0a1
but how can I know its position in my CentOS?
centos python
In my CentOS7 there are multi python, I check the default python version by:
# python3 -V
Python 3.6.0a1
but how can I know its position in my CentOS?
centos python
centos python
asked Aug 7 at 6:41
sof-03
1103
1103
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
which python3
will show you the path to Python executable; if you want to find out the root dir where the Python library files are installed, use sys.prefix
:
$ python3 -c "import sys; print(sys.prefix)"
add a comment |Â
up vote
1
down vote
Use rpm -ql
. Like so:
$ rpm -ql python
/usr/bin/pydoc
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/share/doc/python-2.7.5
/usr/share/doc/python-2.7.5/LICENSE
/usr/share/doc/python-2.7.5/README
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python2.1.gz
/usr/share/man/man1/python2.7.1.gz
-q
= Query-l
= List
See man rpm
for all options.
Or simply:
$ which python
/usr/bin/python
...to see where the binary is.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
which python3
will show you the path to Python executable; if you want to find out the root dir where the Python library files are installed, use sys.prefix
:
$ python3 -c "import sys; print(sys.prefix)"
add a comment |Â
up vote
1
down vote
accepted
which python3
will show you the path to Python executable; if you want to find out the root dir where the Python library files are installed, use sys.prefix
:
$ python3 -c "import sys; print(sys.prefix)"
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
which python3
will show you the path to Python executable; if you want to find out the root dir where the Python library files are installed, use sys.prefix
:
$ python3 -c "import sys; print(sys.prefix)"
which python3
will show you the path to Python executable; if you want to find out the root dir where the Python library files are installed, use sys.prefix
:
$ python3 -c "import sys; print(sys.prefix)"
answered Aug 7 at 6:58
hoefling
5011410
5011410
add a comment |Â
add a comment |Â
up vote
1
down vote
Use rpm -ql
. Like so:
$ rpm -ql python
/usr/bin/pydoc
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/share/doc/python-2.7.5
/usr/share/doc/python-2.7.5/LICENSE
/usr/share/doc/python-2.7.5/README
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python2.1.gz
/usr/share/man/man1/python2.7.1.gz
-q
= Query-l
= List
See man rpm
for all options.
Or simply:
$ which python
/usr/bin/python
...to see where the binary is.
add a comment |Â
up vote
1
down vote
Use rpm -ql
. Like so:
$ rpm -ql python
/usr/bin/pydoc
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/share/doc/python-2.7.5
/usr/share/doc/python-2.7.5/LICENSE
/usr/share/doc/python-2.7.5/README
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python2.1.gz
/usr/share/man/man1/python2.7.1.gz
-q
= Query-l
= List
See man rpm
for all options.
Or simply:
$ which python
/usr/bin/python
...to see where the binary is.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Use rpm -ql
. Like so:
$ rpm -ql python
/usr/bin/pydoc
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/share/doc/python-2.7.5
/usr/share/doc/python-2.7.5/LICENSE
/usr/share/doc/python-2.7.5/README
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python2.1.gz
/usr/share/man/man1/python2.7.1.gz
-q
= Query-l
= List
See man rpm
for all options.
Or simply:
$ which python
/usr/bin/python
...to see where the binary is.
Use rpm -ql
. Like so:
$ rpm -ql python
/usr/bin/pydoc
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/share/doc/python-2.7.5
/usr/share/doc/python-2.7.5/LICENSE
/usr/share/doc/python-2.7.5/README
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python2.1.gz
/usr/share/man/man1/python2.7.1.gz
-q
= Query-l
= List
See man rpm
for all options.
Or simply:
$ which python
/usr/bin/python
...to see where the binary is.
edited Aug 16 at 17:13
answered Aug 7 at 6:55
maulinglawns
5,9882924
5,9882924
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460968%2fhow-can-i-know-a-softwares-install-position-in-my-centos%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password