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

Wayland & Weston Compositor Ported To DragonFlyBSD

Wayland has been ported to DragonFlyBSD along with its Weston compositor! In the past we've seen some minor experiments by BSD developers with Wayland/Weston, but for the most part all of the BSDs are still focused on X.Org Server support -- need I remind Phoronix readers that DRM/KMS support is in varying stages across the BSD distributions too as one of the support stepping stones. Just a few days ago I ran into the DragonFly Radeon kernel module failing to properly mode-set with a several year old (pre-GCN) graphics card while meanwhile FreeBSD's Radeon KMS port worked. It's still rather a mine field when it comes to open-source graphics acceleration and support on the BSDs while slowly but surely their catching up with the kernel code. Read more

diff -u: What's New in Kernel Development

Over time, memory can become more and more fragmented on a system, making it difficult to find contiguous blocks of RAM to satisfy ongoing allocation requests. At certain times the running system may compact regions of memory together to free up larger blocks, but Vlastimil Babka recently pointed out that this wasn't done regularly enough to avoid latency problems for code that made larger memory requests. Read more

Canonical's Ubuntu Internet Browser Silently Becomes Awesome - Video

The Ubuntu Internet browser is a little-known application that's been getting a lot of updates lately. It's developed internally by Canonical, and it seems to get better with each new edition. Read more

7 open-source password managers to try now that LogMeIn owns LastPass

Some LastPass users were clearly not pleased to find out last week that the password management app had been acquired by LogMeIn. Fortunately, there are several alternatives to choose from. Sure, there are premium options like Dashlane, Keeper, Passpack, 1Password, and RoboForm, but there are also free password management systems that anyone can inspect and even contribute to. No matter what you use, the idea is to be more secure than you would be if you were to just use “password” as the password for every app you sign up for. Read more