Linux · Packages interview questions

33 real Linux · Packages questions from the System Administration bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What does dnf install X do?

Junior
  1. A.roll back a previous dnf transaction
  2. B.update all installed packages on RHEL/Fedora
  3. C.install available package upgrades on Debian/Ubuntu
  4. D.install a package and its dependencies on RHEL/Fedora
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.dnf install X — install a package and its dependencies on RHEL/Fedora
  2. B.dnf install X — list all installed RPM packages
  3. C.dnf install X — list installed Debian packages
  4. D.dnf install X — roll back a previous dnf transaction
Reveal the answer + AI explanation — free account

4. What does apt install X do?

Junior
  1. A.refresh the package index on Debian/Ubuntu
  2. B.install a package and its dependencies on Debian/Ubuntu
  3. C.install a package and its dependencies on RHEL/Fedora
  4. D.roll back a previous dnf transaction
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.apt install X — install a package and its dependencies on RHEL/Fedora
  2. B.apt install X — install a package and its dependencies on Debian/Ubuntu
  3. C.apt install X — update all installed packages on RHEL/Fedora
  4. D.apt install X — list installed Debian packages
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.rpm -qa — list all installed RPM packages
  2. B.rpm -qa — show which package owns a given file
  3. C.rpm -qa — install a package and its dependencies on Debian/Ubuntu
  4. D.rpm -qa — update all installed packages on RHEL/Fedora
Reveal the answer + AI explanation — free account

10. What does rpm -qf /path/to/file do?

Mid
  1. A.show which package owns a given file
  2. B.update all installed packages on RHEL/Fedora
  3. C.find which package provides a given file/path
  4. D.install a package and its dependencies on RHEL/Fedora
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.rpm -qf /path/to/file — list installed Debian packages
  2. B.rpm -qf /path/to/file — roll back a previous dnf transaction
  3. C.rpm -qf /path/to/file — show which package owns a given file
  4. D.rpm -qf /path/to/file — install a package and its dependencies on Debian/Ubuntu
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.dnf history undo N — install available package upgrades on Debian/Ubuntu
  2. B.dnf history undo N — list all installed RPM packages
  3. C.dnf history undo N — roll back a previous dnf transaction
  4. D.dnf history undo N — install a package and its dependencies on RHEL/Fedora
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Junior
  1. A.dnf update — install a package and its dependencies on Debian/Ubuntu
  2. B.dnf update — update all installed packages on RHEL/Fedora
  3. C.dnf update — roll back a previous dnf transaction
  4. D.dnf update — install a package and its dependencies on RHEL/Fedora
Reveal the answer + AI explanation — free account

19. What does apt update do?

Junior
  1. A.install a package and its dependencies on RHEL/Fedora
  2. B.install available package upgrades on Debian/Ubuntu
  3. C.refresh the package index on Debian/Ubuntu
  4. D.list installed Debian packages
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Junior
  1. A.apt update — find which package provides a given file/path
  2. B.apt update — refresh the package index on Debian/Ubuntu
  3. C.apt update — install a predefined package group
  4. D.apt update — install a package and its dependencies on Debian/Ubuntu
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Junior
  1. A.apt upgrade — list installed Debian packages
  2. B.apt upgrade — install available package upgrades on Debian/Ubuntu
  3. C.apt upgrade — roll back a previous dnf transaction
  4. D.apt upgrade — install a predefined package group
Reveal the answer + AI explanation — free account

25. What does dnf provides */httpd do?

Mid
  1. A.find which package provides a given file/path
  2. B.list all installed RPM packages
  3. C.show which package owns a given file
  4. D.install a package and its dependencies on RHEL/Fedora
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Mid
  1. A.dnf provides */httpd — find which package provides a given file/path
  2. B.dnf provides */httpd — install a predefined package group
  3. C.dnf provides */httpd — install available package upgrades on Debian/Ubuntu
  4. D.dnf provides */httpd — update all installed packages on RHEL/Fedora
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Mid
  1. A.dpkg -l — refresh the package index on Debian/Ubuntu
  2. B.dpkg -l — install a package and its dependencies on Debian/Ubuntu
  3. C.dpkg -l — list installed Debian packages
  4. D.dpkg -l — install a predefined package group
Reveal the answer + AI explanation — free account

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

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Linux · Packages free