Free LPI 702-100 Actual Exam Questions - Question 3 Discussion
C. The key here is "updates packages to newer versions," which means actually upgrading what's installed. pkg update just grabs the latest repo catalog but doesn’t touch installed packages. pkg upgrade is the one that applies newer versions to your system. The other options either check for vulnerabilities or don’t exist in this context. So, it’s really about the distinction between refreshing metadata and performing the upgrade itself.
A/D? Since pkg update just refreshes repo info and pkg audit only scans for vulnerabilities, neither installs new versions. It’s between those two if you think about updating data versus security checks.
Option C is the clear choice here because pkg update only refreshes the repository info but doesn’t change installed packages. Also, pkg audit just checks for security issues without updating anything. The command that actually installs newer versions of already-installed packages is pkg upgrade, so C fits perfectly.
Yeah, I agree it’s C. Just to add, A (pkg update) only updates the repository catalog, so no actual package versions change. D and E don’t fit either since audit checks for vulnerabilities and pull isn’t a standard pkg command. So C is definitely the one that upgrades installed packages to newer versions.
C, since pkg upgrade actually applies the newer versions, unlike pkg update.
C