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

AMD is working on a new Linux graphics driver to catch up with Nvidia

There’s no doubt about it: AMD’s Linux graphics drivers are behind Nvidia’s, something that will start mattering a lot more when Valve’s first Linux-based Steam Machines start hitting the market this November. AMD hasn’t turned the ship around yet, and big-name games are still only supporting Nvidia hardware when they launch on Linux. But AMD hasn’t been sitting on its hands. AMD’s developers are working on a new Linux driver architecture that will result in better open-source drivers, too—eventually. Read more

LibreOffice 5: The best office suite today won't cost you a dime

I've used LibreOffice as my main office suite since it forked from OpenOffice five years ago. Now its latest edition, LibreOffice 5.0, is better than ever. And, in my book, that means it's the best standalone office suite available in 2015. Read more

Enlightenment Foundation Libraries 1.15 and Friends are Out

After three months of development work we are proud to announce the release of version 1.15 of the EFL, Elementary, Evas Generic Loaders and Emotion Generic Players. In these 12 weeks we got over 1000 commits from 64 authors in EFL alone. We slowed down a bit from last release (by around 200 commits). Elementary has another 472 commits by 56 authors. Great job everyone! Some highlights are listed below. Read more

Debian Finally Moves to GCC 5

Ubuntu and Debian developers have been working for some time to make GCC 5.x the default compiler for the project, and they have finally made it. Ubuntu was the first one to achieve this, and now it looks like Debian has joined the party as well. Read more