Replace binaries and Files with dpkg-divert

File `diversions’ are a way of forcing dpkg not to install a file into its location, but to a `diverted’ location. Diversions can be used through the Debian package scripts to move a file away when it causes a conflict. System administrators can also use it to override some package’s configuration file, or whenever some files (which aren’t marked as ‘conffiles’) need to be preserved by dpkg, when installing a newer version of a package which contains those files.
dpkg-divert is the utility used to set up and update the list of diversions. It functions in three basic modes - adding, removing, and listing diversions. The options are –add, –remove, and –list, respectively. Additionally, it can print out the real name for a diverted file. Other options (listed below) may also be specified.
The dpkg-divert command allows you to replace a binary installed upon the system, and have this replacement persist even if you upgrade packages.This is very useful if you want to use an updated version of some application instead of old version existing on your machine.
-
- Login or register to post comments
Printer-friendly version
- 944 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
Critical Live Boot Bug Fixed and Ubuntu 18.04 is Finally Released
A critical bug in live boot session delayed Ubuntu 18.04 LTS release for several hours. The bug has been fixed and the ISO are available to download.
| Nintendo Switch hack + Dolphin Emulator could bring GameCube and Wii game support
This week security researchers released details about a vulnerability affecting NVIDIA Tegra X1 processors that makes it possible to bypass secure boot and run unverified code on some devices… including every Nintendo Switch game console that’s shipped to date.
Among other things, this opens the door for running modified versions of Nintendo’s firmware, or alternate operating systems such as a GNU/Linux distribution.
And if you can run Linux… you can also run Linux applications. Now it looks like one of those applications could be the Dolphin emulator, which lets you play Nintendo GameCube and Wii games on a computer or other supported devices.
|
Openwashing Leftovers
| Linux Foundation: New Members, Cloud Foundry, and Embedded Linux Conference + OpenIoT Summit
|
Recent comments
1 min ago
2 hours 53 min ago
2 hours 57 min ago
7 hours 1 min ago
7 hours 55 min ago
8 hours 18 min ago
2 days 8 hours ago
2 days 9 hours ago
2 days 9 hours ago
2 days 10 hours ago