deb-override - Linux


deb-override is a tool for overriding installed Debian packages with local .deb files. This can be useful for testing new versions of packages, or for installing packages that have been removed from the official repositories.


deb-override [options] <package> <local-deb-file>


  • -h, --help: Display help and exit.
  • -v, --verbose: Enable verbose output.
  • -f, --force: Force override of existing packages.
  • -s, --skip-remove: Skip removing the existing package before overriding.
  • -l, --local: Use local .deb file as the override source.
  • -r, --remote: Use remote .deb file as the override source.


Simple usage:

deb-override vim /tmp/vim_2.8.tar.gz

Verbose output:

deb-override -v vim /tmp/vim_2.8.tar.gz

Force override:

deb-override -f vim /tmp/vim_2.8.tar.gz

Skip removing existing package:

deb-override -s vim /tmp/vim_2.8.tar.gz

Use remote .deb file:

deb-override -r vim

Common Issues

  • Permission denied: Ensure you have root privileges to run the command.
  • Package not found: Verify the package name and local .deb file path.
  • Dependency conflicts: Some packages may depend on others that are not installed. Install the missing dependencies before overriding.


Install a specific version of a package:

deb-override nginx nginx_1.18.0-1_amd64.deb

Upgrade a package using a local .deb file:

deb-override git /tmp/git_2.31.1-1_amd64.deb

Downgrade a package using a remote .deb file:

deb-override -r curl

Related Commands

  • dpkg: Package manager for Debian-based systems.
  • apt: Command-line interface for dpkg.
  • equivs: Tool for creating compatibility links between different .deb packages.