Install tool_1.0_amd64.deb from the current directory with dpkg.
Automatic repository dependency retrieval is not required.
Which command is appropriate?
dpkg -i FILE.deb installs or upgrades the specified local archive. dpkg itself does not fetch missing dependencies from repositories.
Detailed explanation
dpkg -i tool_1.0_amd64.debCorrect. dpkg -i installs the local deb archive.
Correct. dpkg -i installs the local deb archive.
dpkg -r tool_1.0_amd64.debIncorrect. -r removes a package by package name.
Incorrect. -r removes a package by package name.
dpkg -l tool_1.0_amd64.debIncorrect. -l lists package status.
Incorrect. -l lists package status.
dpkg -P tool_1.0_amd64.debIncorrect. -P purges a package by package name.
Incorrect. -P purges a package by package name.
Try it yourself
An example you can run in a temporary verification environment.
dpkg --help | grep -E -- '--install|-i' | head -n 1Expected result
--install package-file... | -i package-file...に相当する説明Key points
- -i accepts a deb file
- It installs or upgrades
- Dependency retrieval differs from APT
Notes
- Environment: dpkg 1.21以降 / ヘルプ表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.