exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 33 discussion

Actual exam question from LPI's 101-500
Question #: 33
Topic #: 1
[All 101-500 Questions]

Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

  • A. dpkg -s pkgname
  • B. dpkg -L pkgname
  • C. dpkg -P pkgname
  • D. dpkg -v pkgname
  • E. dpkg -r pkgname
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Adam_H
Highly Voted 1 year, 6 months ago
Selected Answer: E
If it helps, you can think of using -r as telling the system to retain the configuration files for that package
upvoted 7 times
...
Ninymo
Most Recent 3 months, 3 weeks ago
Answer: E
upvoted 1 times
...
blk_542
1 year, 8 months ago
true, -r: https://phoenixnap.com/kb/dpkg-command
upvoted 1 times
...
klever
1 year, 9 months ago
It is the correct answer, according to man page the -r, --remove Remove an installed package. This removes everything except conffiles, which may avoid having to reconfigure the package if it is reinstalled later
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago