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

Getting Involved With The New Raspberry Pi Graphics Driver

Eric Anholt, formerly a lead developer on Intel's Linux graphics driver, has been quickly working away at the VC4 Gallium3D driver and related code now being a Broadcom employee tasked with making an open-source driver for the Raspberry Pi. If you're looking to try out his in-development driver or help him out in the driver creation process, he's published a brief guide to lower the barrier to entry. Eric published a blog post on Friday that covers the steps for building a Linux kernel that has the VC4 driver, building mainline Mesa with the VC4 driver, and also building Piglit for carrying out regression tests. Read more

CyanogenMod add ‘tab switching’ function to recent CM11 nightlies

Yesterday, we advised of a new call recording feature which has recently popped up on the CM nightlies. Today we have information on another new feature which seems to have recently been added to CM11 nightlies. Those of you who are used to non-CM ROM’s will already know of this feature as it appears on other ROM’s such as Omni, Slim and Paranoid Android. So although not a novel feature this is a new feature to CM and one which users should be happy with. Read more

Simplenote want developers to make a GNU/Linux implementation

Matt Mullenweg founder and CEO of Automattic which is responsible for WordPress.com has reached out to people who develop software on the GNU/Linux platform to find someone who will bring the Simplenote application to GNU/Linux. Read more

How to set up Raspberry Pi, the little computer you can cook into DIY tech projects

You don't need an electrical engineering degree to build a robot army. With the $35 Raspberry Pi B+, you can create robots and connected devices on the cheap, with little more than an Internet connection and a bunch of spare time. The Raspberry Pi is a computer about the size of a credit card. The darling of the do-it-yourself electronics crowd, the Pi was originally designed to teach kids computer and programming skills without the need for expensive computer labs. People have used Raspberry Pis for everything from robots to cheap home media centers. The Pi sports USB ports, HDMI video, and a host of other peripherals. The latest version, the B+, sports 512MB of RAM and uses a MicroSD card instead of a full-size card. Read more