linux
If it is installed, what version is installed according to the dpkg
or apt output?
If it wasn’t installed, can you install it? What command would you
use to do this?
$
2. Using dpkg, what would be the full
command you would use to determine to which package the file
/etc/rpc belongs?
$
What is the name of the package to which this file belongs?
Please note that all the commands are in bold
for the 1st question , you can use below command to get the corresponding packages of the python3 if it was installed.
dpkg -S python3
You can also use upto python3 installed
location.
dpkg -S usr/lib/python3
The output of this command is as follows: and in my case
it is python 3.5
for the 2nd question , i.e installing python in your system,
if your linux version is above 16.10 (most probably have this kind of version). then you can use the following below commands one after the other for installing python 3.6
sudo apt-get update then below command; sudo apt-get install python3.6
you will see below similar output for (sudo apt-get update)
for the second command you will see as below.
3rd question : Using dpkg, what would be the full command
the answer is as follows
you can use below bolded command: which will serve to search
dpkg -S /etc/rpc
the expected outcome is as below.
for the final question, the file /etc/rpc belongs to netbase package which we can clearly get it from above example
so finally dpkg has lot of uses inorder to get package search, file in the package as the above examples
Get Answers For Free
Most questions answered within 1 hours.