Language Selection

English French German Italian Portuguese Spanish

Replace binaries and Files with dpkg-divert

Filed under
HowTos

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.

Full Story.

More in Tux Machines

COM and Pico-ITX dev kit run Linux on dual-core Cortex-A7

iWave has launched a rugged, SODIMM-style COM and Pico-ITX form factor carrier board that run Linux on the Renesas dual-core, Cortex-A7 RZ/G1E SoC. In January, iWave launched the iW-RainboW-G20M-Qseven computer-on-module, built around the dual-core 1.5GHz Cortex-A15 based Renesas RZ/G1M and RZ/G1N SoCs. Now the company has followed up with a 67.6 x 37mm, SODIMM form factor “iW-RainboW-G22M-SM” COM that runs Linux 3.10.31 on the dual-core Cortex-A7 based RZ/G1E SoC from the same RZ/G series SoCs. Read more

today's leftovers