Question

linux Using dpkg or apt, what would be the full command you would use to find...

linux

  1. Using dpkg or apt, what would be the full command you would use to find out if the python package was installed? This is tricky because Python’s actual package name is python3.

    $


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?

Homework Answers

Answer #1

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

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
How do you find files whose names contain embedded spaces? What would the Linux command(s) be?...
How do you find files whose names contain embedded spaces? What would the Linux command(s) be? How do you delete them? What would the Linux command(s) be?
List a sequence of Linux commands you would execute after you successfully log on to your...
List a sequence of Linux commands you would execute after you successfully log on to your VM machine, make a directory called midterm in your home directory, create a simple C program called display.c in the newly created directory, compile the code using gcc compiler, and run the program, and finally, save the output to a text file called display.txt. Remember to briefly explain each command.
What command discards the IP address? What command do you use to determine whether you can...
What command discards the IP address? What command do you use to determine whether you can reach another computer on the local network? Would this command work if the default gateway were down? When troubleshooting problems with resolving domain names to IP addresses, flushing the DNS cache can sometimes help so that the local computer must build the cache again. What is the command to flush the DNS cache? What command would you use to display information about name resolutions...
What command would you use to view the files and folders in the C:\windows directory? Use...
What command would you use to view the files and folders in the C:\windows directory? Use relative references. What command would you use to view only the directories in the C:\windows directory? Use relative references. Hint: Use a switch. What command would you use to view only the .com files in the C:\windows\system32 directory? Use relative references. What command would you use to create a directory called JUNK at the root. Use relative references. What command would you use to...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and the logrotate utility on Ubuntu Server Linux. 1. Boot your Ubuntu Server Linux virtual machine. After your Linux system has been loaded, log into tty1 using the user name of root and the password of LNXrocks!. 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what...
IN LINUX answer the following with what you would type to get the desired result. Change...
IN LINUX answer the following with what you would type to get the desired result. Change the permissions of the /home/shared/salesproject/ folder itself, allowing the owner and group full access, with no access for anyone else on the system. Log in as "susan" (password "secret") and make sure she can access the /home/shared/salesproject/ directory and files within. Create a file in /home/shared/salesproject/ as susan. What are the owner, group, and mode of the file she created? Log in as "sam"...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)                         a. the prefix "rc" (rc.filename)               c. the extension .cfig                         b. a dot (.) at the beginning                    d. by having the SUID bit set 2. The IP address which is reserved for local loopback (equivalent to "localhost") is:                         a. 255.255.255.0                                   c. 192.168.70.1...
USE CALCULATOR AND SHOW FULL STEPS FOR EACH TEST INCLUDING WHAT YOU INPUT Below are random...
USE CALCULATOR AND SHOW FULL STEPS FOR EACH TEST INCLUDING WHAT YOU INPUT Below are random samples of enrollments for medical schools that specialize in research and for those that specialize in primary care. Is there a difference in the average enrollment for the two specializations? Use a significance level of a = 0.05. a) Give the name of the hypothesis test that would be appropriate for this situation. (1 point) b) State the hypotheses in symbols. (2 points) c)...
1.How would you analyze real options? 2.What type of projects would be in need of using...
1.How would you analyze real options? 2.What type of projects would be in need of using real options? Name an example of a project where the use of real options analysis would be beneficial.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT