How do you get a list of files that have been installed from a dpkg package?
Suggested Answer: C
Get Premium LCP-001 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
36 comments · newest first
KE
Keva
11 months ago
Really? I had no idea there was a specific command for that!
CR
Cristina
11 months ago
Nope, that's just for listing installed packages, not files.
AJ
Aja
11 months ago
Wait, I thought it was dpkg -l?
VI
Viki
12 months ago
Totally agree, that's the right command!
FR
France
12 months ago
You can use dpkg -L pkgname to list files.
NA
Natalie
12 months ago
I’m confused between -L and -S. I know -S is for searching, but I can’t recall if it lists files too.
HE
Herminia
1 year ago
I’m not sure about the options, but I remember that -s is for status and -l is for listing packages, so I think -L makes sense here.
ST
Stephania
1 year ago
I practiced a similar question where we had to identify commands for package management. I feel like -L is definitely the one for listing files.
VI
Vivan
1 year ago
I think the command to list files from a dpkg package is something with -L, but I can't remember if it's the right one.
RO
Roxane
1 year ago
Easy peasy! Option E, "dpkg -L pkgname", is the correct answer. This command will give you the list of files installed by the specified package. I've used this command many times when troubleshooting package issues.
JO
Jovita
1 year ago
I'm a bit confused by the wording of this question. Does it want the list of files for a specific package, or just a general list of all installed packages? I'll need to double-check the details before answering.
DI
Dion
1 year ago
Ah, I've seen this type of question before. The key is to remember that "dpkg -l" lists installed packages, while "dpkg -L" lists the files installed by a specific package. Option E is the way to go.
NO
Norah
1 year ago
Hmm, I'm not too familiar with the dpkg command and its various options. I'll need to think this through carefully and review my notes on package management in Linux.
KA
Karl
1 year ago
This looks like a straightforward dpkg command question. I think option E, "dpkg -L pkgname", is the correct answer since it lists the files installed by a package.
DA
Danica
1 year ago
Hmm, I'm a bit confused. Is there a difference between the business unit data retention setting and the Enterprise wide default retention? I'll need to think this through carefully.
LU
Lucina
1 year ago
You know, I bet the correct answer is option E. It just has that 'list files' vibe to it, you know?
TE
Terina
1 year ago
Ha! I bet option B is some kind of 'check' command, not a list of files. Gotta love these tricky multiple-choice questions.
ER
Erick
1 year ago
D) dpkg -S pkgname
GR
Gracie
1 year ago
E) dpkg -L pkgname
CA
Catarina
1 year ago
A) dpkg -l pkgname
DI
Dierdre
1 year ago
Hmm, I think option D might be the winner here. Isn't that the command to search for a file and see which package it belongs to?
SH
Shala
1 year ago
I'm pretty sure it's option A. 'dpkg -l' lists all the installed packages, not just the files.
LU
Luke
1 year ago
Yes, 'dpkg -l' is the way to go for that.
LA
Lachelle
1 year ago
I always use 'dpkg -l' to get a list of installed packages.
SH
Shelia
1 year ago
I think you're right, option A is the correct one.
WI
Willard
1 year ago
Option E looks like the correct answer to me. I've used that command before to list the files installed by a package.
TA
Tashia
1 year ago
Thanks for the tip, I will use dpkg -L pkgname next time.
WI
Willetta
1 year ago
I think I will go with option E as well.
IR
Ira
1 year ago
I always use dpkg -L to get a list of installed files too. It's very useful.
WI
Wilda
1 year ago
Yes, that's correct. Option E will list the files installed by a package.
CA
Cary
1 year ago
E) dpkg -L pkgname
JU
Juliana
1 year ago
Yes, dpkg -L pkgname will give you a list of files installed by the package.
LU
Luisa
1 year ago
I agree, option E is the correct answer.
MA
Matthew
2 years ago
I'm not sure, but I think dpkg -S pkgname also shows the files installed.
BA
Barabara
2 years ago
I agree with Lisha, dpkg -L lists the files installed by a package.
LI
Lisha
2 years ago
I think the answer is E) dpkg -L pkgname.