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

Compulab Utilite2 Ubuntu mini PC now available for $192 and up

CompuLab’s Utilite2 is a tiny computer with a Qualcomm Snapdragon 600 processor and support for Ubuntu Linux or Google Android software. The company unveiled the 3.4″ x 2.3″ x 1.1″ computer in December, and now it’s available for purchase. Read more

Shuttleworth says Ubuntu’s future is more exciting than space travel

What now feels like a very long time ago was actually only a handful of years. Back in 2010, Canonical knew exactly what its future would hold and had a plan on how to get there. It wanted to build one OS for all devices: phones, TVs, tablets, the desktop, servers and beyond. It wanted the device to be irrelevant and the OS to be agnostic. Unfortunately, while the company knew exactly what it was doing, its loyal Ubuntu desktop user base didn’t. Read more

Valve develops its own Intel graphics driver for Linux

Valve has developed its own Intel Vulkan GPU graphics driver for Linux that they intend to open-source. The Vulkan API is still being argued about and will not be finalised until later this year, but Valve has been developing their own Intel GPU reference driver for Vulkan to help early adopters boot-strap their code. Read more

Tiny IoT SBC runs Linux, offers Arduino compatibility

The credit card sized, open-spec Udoo Neo SBC features Freescale’s Cortex-M4-enhanced i.MX6 SoloX, plus Arduino compatibility, WiFi, Bluetooth, and sensors. Read more