Difficulty: Easy
Correct Answer: rpm -Uvh ipchains-1.3.9-5.i386.rpm
Explanation:
Introduction / Context:
On RPM-based Linux distributions (for example, Red Hat, CentOS, older Fedora), software is distributed as .rpm files. Knowing the proper rpm command and flags for installation versus query or removal is essential for reliable package management from the command line.
Given Data / Assumptions:
Concept / Approach:
Use rpm with the correct action flags: -U means upgrade (install if missing, otherwise upgrade), -i means install only (fails if already installed), -v is verbose, and -h draws a progress bar with hashes. For most operational use, -Uvh is preferred to handle both new installs and upgrades.
Step-by-Step Solution:
Verification / Alternative check:
Verify installation with rpm -q ipchains. For detailed info, rpm -qi ipchains. To list files, rpm -ql ipchains.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
rpm -Uvh ipchains-1.3.9-5.i386.rpm.
Discussion & Comments