33 Linux · Packages questions from the System Administration bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
C.install available package upgrades on Debian/Ubuntu
D.install a package and its dependencies on RHEL/Fedora
Answer + AI explanation with Pro
2. Which command will install a package and its dependencies on RHEL/Fedora?
Junior
A.apt upgrade
B.dnf install X
C.dnf groupinstall 'Development Tools'
D.rpm -qf /path/to/file
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.dnf install X — install a package and its dependencies on RHEL/Fedora
B.dnf install X — list all installed RPM packages
C.dnf install X — list installed Debian packages
D.dnf install X — roll back a previous dnf transaction
Answer + AI explanation with Pro
4. What does apt install X do?
Junior
A.refresh the package index on Debian/Ubuntu
B.install a package and its dependencies on Debian/Ubuntu
C.install a package and its dependencies on RHEL/Fedora
D.roll back a previous dnf transaction
Answer + AI explanation with Pro
5. Which command will install a package and its dependencies on Debian/Ubuntu?
Junior
A.rpm -qa
B.dnf history undo N
C.apt install X
D.apt update
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.apt install X — install a package and its dependencies on RHEL/Fedora
B.apt install X — install a package and its dependencies on Debian/Ubuntu
C.apt install X — update all installed packages on RHEL/Fedora
D.apt install X — list installed Debian packages
Answer + AI explanation with Pro
7. What does rpm -qa do?
Junior
A.list installed Debian packages
B.find which package provides a given file/path
C.list all installed RPM packages
D.update all installed packages on RHEL/Fedora
Answer + AI explanation with Pro
8. Which command will list all installed RPM packages?
Junior
A.dnf groupinstall 'Development Tools'
B.rpm -qa
C.apt upgrade
D.dnf install X
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.rpm -qa — list all installed RPM packages
B.rpm -qa — show which package owns a given file
C.rpm -qa — install a package and its dependencies on Debian/Ubuntu
D.rpm -qa — update all installed packages on RHEL/Fedora
Answer + AI explanation with Pro
10. What does rpm -qf /path/to/file do?
Mid
A.show which package owns a given file
B.update all installed packages on RHEL/Fedora
C.find which package provides a given file/path
D.install a package and its dependencies on RHEL/Fedora
Answer + AI explanation with Pro
11. Which command will show which package owns a given file?
Mid
A.apt update
B.dnf update
C.rpm -qf /path/to/file
D.apt install X
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.rpm -qf /path/to/file — list installed Debian packages
B.rpm -qf /path/to/file — roll back a previous dnf transaction
C.rpm -qf /path/to/file — show which package owns a given file
D.rpm -qf /path/to/file — install a package and its dependencies on Debian/Ubuntu
Answer + AI explanation with Pro
13. What does dnf history undo N do?
Mid
A.install a predefined package group
B.list all installed RPM packages
C.refresh the package index on Debian/Ubuntu
D.roll back a previous dnf transaction
Answer + AI explanation with Pro
14. Which command will roll back a previous dnf transaction?
Mid
A.apt upgrade
B.apt install X
C.dnf history undo N
D.apt update
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.dnf history undo N — install available package upgrades on Debian/Ubuntu
B.dnf history undo N — list all installed RPM packages
C.dnf history undo N — roll back a previous dnf transaction
D.dnf history undo N — install a package and its dependencies on RHEL/Fedora
Answer + AI explanation with Pro
16. What does dnf update do?
Junior
A.install a predefined package group
B.update all installed packages on RHEL/Fedora
C.roll back a previous dnf transaction
D.refresh the package index on Debian/Ubuntu
Answer + AI explanation with Pro
17. Which command will update all installed packages on RHEL/Fedora?
Junior
A.rpm -qf /path/to/file
B.apt install X
C.rpm -qa
D.dnf update
Answer + AI explanation with Pro
18. Which statement is correct?
Junior
A.dnf update — install a package and its dependencies on Debian/Ubuntu
B.dnf update — update all installed packages on RHEL/Fedora
C.dnf update — roll back a previous dnf transaction
D.dnf update — install a package and its dependencies on RHEL/Fedora
Answer + AI explanation with Pro
19. What does apt update do?
Junior
A.install a package and its dependencies on RHEL/Fedora
B.install available package upgrades on Debian/Ubuntu
C.refresh the package index on Debian/Ubuntu
D.list installed Debian packages
Answer + AI explanation with Pro
20. Which command will refresh the package index on Debian/Ubuntu?
Junior
A.dnf history undo N
B.dnf update
C.apt update
D.apt upgrade
Answer + AI explanation with Pro
21. Which statement is correct?
Junior
A.apt update — find which package provides a given file/path
B.apt update — refresh the package index on Debian/Ubuntu
C.apt update — install a predefined package group
D.apt update — install a package and its dependencies on Debian/Ubuntu
Answer + AI explanation with Pro
22. What does apt upgrade do?
Junior
A.list installed Debian packages
B.refresh the package index on Debian/Ubuntu
C.install available package upgrades on Debian/Ubuntu
D.list all installed RPM packages
Answer + AI explanation with Pro
23. Which command will install available package upgrades on Debian/Ubuntu?
Junior
A.dnf provides */httpd
B.apt upgrade
C.apt install X
D.dnf update
Answer + AI explanation with Pro
24. Which statement is correct?
Junior
A.apt upgrade — list installed Debian packages
B.apt upgrade — install available package upgrades on Debian/Ubuntu
C.apt upgrade — roll back a previous dnf transaction
D.apt upgrade — install a predefined package group
Answer + AI explanation with Pro
25. What does dnf provides */httpd do?
Mid
A.find which package provides a given file/path
B.list all installed RPM packages
C.show which package owns a given file
D.install a package and its dependencies on RHEL/Fedora
Answer + AI explanation with Pro
26. Which command will find which package provides a given file/path?
Mid
A.apt update
B.apt install X
C.dnf provides */httpd
D.dnf install X
Answer + AI explanation with Pro
27. Which statement is correct?
Mid
A.dnf provides */httpd — find which package provides a given file/path
B.dnf provides */httpd — install a predefined package group
C.dnf provides */httpd — install available package upgrades on Debian/Ubuntu
D.dnf provides */httpd — update all installed packages on RHEL/Fedora
Answer + AI explanation with Pro
28. What does dpkg -l do?
Mid
A.list all installed RPM packages
B.install available package upgrades on Debian/Ubuntu
C.list installed Debian packages
D.find which package provides a given file/path
Answer + AI explanation with Pro
29. Which command will list installed Debian packages?
Mid
A.dnf groupinstall 'Development Tools'
B.dnf history undo N
C.dpkg -l
D.rpm -qa
Answer + AI explanation with Pro
30. Which statement is correct?
Mid
A.dpkg -l — refresh the package index on Debian/Ubuntu
B.dpkg -l — install a package and its dependencies on Debian/Ubuntu
C.dpkg -l — list installed Debian packages
D.dpkg -l — install a predefined package group
Answer + AI explanation with Pro
Showing 30 of 33 Linux · Packages questions — the full set, with answers, explanations and an AI tutor on every question, is inside.
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Linux · Packages question come with Pro.