Language Selection

English French German Italian Portuguese Spanish

Replace binaries and Files with dpkg-divert

Filed under

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

Mesa 11.1 RC2 Brings Dozens Of Fixes

It's coming a few days late, but Mesa 11.1 Release Candidate 2 was officially released today. Mesa 11.1 when released later in December will have many new features but doesn't bump the overall OpenGL version support. Now being past the Mesa Git branching, Mesa 11.1-RC2 is just about bug/regression fixing. Read more

uNav GPS Navigation App for Ubuntu Phones Receives a Major Update

Today, November 30, Marcos Costales has just announced a new update for its awesome uNav GPS navigation app for Ubuntu Phone devices, a release that introduces some interesting new features. Read more

Watch: Ubuntu 16.04 LTS with Unity 8 Gets a New and Beautiful Official Theme

The next Ubuntu desktop with Unity 8 cannot launch with the same theme as the old Unity 7, although that seemed like the case, until now at least. The team has finally changed the theme for Ubuntu 16.04 LTS with Unity 8, and it looks really, really good. Read more