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. -i installs the specified deb archive.
dpkg -r tool_1.0_amd64.debIncorrect. -r removes a package by package name.
Incorrect. -r removes an installed package by package name.
dpkg -l tool_1.0_amd64.debIncorrect. -l lists package status.
Incorrect. -l lists package state and does not install an archive.
dpkg -P tool_1.0_amd64.debIncorrect. -P purges a package by package name.
Incorrect. -P purges an installed package and its managed configuration.
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以降 / ヘルプ表示のみ
- Use a disposable package or read-only help when testing package commands.
- Package behavior can vary with dpkg and debconf versions.
Foundation review
Place the operation
dpkg operates on a local archive and database; repository dependency retrieval is a separate APT responsibility.
Check the side effect
Use a disposable package or inspect dpkg help before running an install.