Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The permission denied message you get is because dpkg.log is not an executable file. It is a text file containing the input for the project.

The permission denied message you get is because dpkg.log is not an executable file. It is a text file containing the input for the project. You can view its contents with vi or cat.

The bash files will be scripts to orchestrate all of the commands you will run for each part of the assignment. This will include invoking sed with the corresponding sed scripts. The goal is to take the contents of the dpkg file and filter out the data in question with sed. Then use the resulting data to solve the core problem (i.e., identify which programs have been installed and/or uninstalled). Need help with this I get what its asking for but not sure how to go about it.

image text in transcribedimage text in transcribedimage text in transcribed

This assignment has two parts p2a and p2b Problem A: We need a new mechanism to identify apps that have been installed on the system and have never beern removed, we will use the dpkglog file to get information of the installation history; however, it just handles one server. You can find dpkg.log in /usr/local/courses/rslavin/cs3423/2018Sp/assignment2 Copy this file to your project directory The format of the dpkg.log is similar to this (the yellow highlighted portions are comments) The following line is a command to remove grub-legacy-ec2. 2016-03-23 2e : 54:27 remove grub-legacy-ec 2: all 8.7.5-Bubuntu1.17 The following 'status' ines are intermedlote steps in the removal of the 'grub-legocy-ec2' program 2816-83-23 20:54:27 startup packages purge 2816-83-23 20:54:27 status config-files grub-legacy-ec2:all 8.7.5-ubuntul.17 2816-83-23 28:54:27 status config-files grub-legacy-ec2:all e.7.5-9ubuntul.17 The following is an example of a short command 2816-89-13 82:42:27 instal1 language-pack-en-base:al1 2.5.35-10.1ubuntu2 2818-81-19 21:33:89 status half-configured man-db:amd64 2.6.7.1-1ubuntul 2818-81-19 21:33:09 status half-installed flex:amd64 2.5.35-18.1ubuntu2 2818-81-19 21:33:89 status triggers-pending install-info:amd64 5.2.8.dfsg.1-2 2818-81-19 21:33:89 status triggers-pending man-db:amd64 2.6.7.1-1ubuntul 2818-81-19 21:33:14 status installed libf1-dev:amd64 2.5.35-18.1ubuntu2 2818-81-19 21:33:14 status unpacked flex:amd64 2.5.35-18.1ubuntu2 2818-81-19 21:33:14 status unpacked libfl-dev:amd64 2.5.35-10.1ubuntu2 2018-01-19 21:33:25 remove flex:amd64 2.5.35-10.1ubuntu2 2018-01-19 21:33:25 remove libf1-dev:amd64 2.5.35-10.1ubuntu2 2818-81-19 21:33:25 startup packages remove 2818-81-19 21:33:25 status config-files flex:amd64 2.5.35-18.1ubuntu2 2818-81-19 21:33:25 status config-files flex:amd64 2.5.35-18.lubuntu2 2818-81-19 21:33:25 status config-files libfl-dev:amd64 2.5.35-10.1ubuntu2 Find any program which has been installed but not removed from this file. For instance, in the example above the program language-pack-en-base (5th line) meets the criteria but the program flex (8h line) does not since it was removed later We suggest creating two files, one with all the installed programs and one with all the removed programs, and using the difference of the two to find only those who have been installed but not removed Example Installed file language-pack-en-base flex

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago