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

GNOME Recipes and Outreachy

  • Recipes for you and me
    Since I’ve last written about recipes, we’ve started to figure out what we can achieve in time for GNOME 3.24, with an eye towards delivering a useful application. The result is this plan, which should be doable.
  • Outreachy (GNOME)-W5&W6
    My plan was altered in this two-week, because the strings of GNOME 3.24 have not frozen yet and the maintainers of Chinese localization group told me the Extra GNOME Applications are more necessary to be translated than documents, so I began to translate the Extra GNOME Applications (stable) during this period.
  • [Older] Outreachy (GNOME)-W3&W4
    During this period, I finished the UI translation of GNOME 3.22, I’m waiting to reviewed and committed now, and I met some troubles and resolved them these days.

Home Recording with Ubuntu Studio Part One: Gearing Up

Twenty years ago, the cost of building a studio for the creation of electronic music was pricey, to say the least. The cost of a computer that was suitable for multimedia production could cost the average musician between $1,000 and $2,000. Add in the cost of recording software, additional instruments and equipment, and one could easily spend between $5,000 and $10,000 just to get started. But nowadays, you do not have to break the bank to start making music at home. The price of personal computers has dropped substantially over the past two decades. At the time of this writing, it is possible to get a notebook PC that’s suitable for audio production for around $500. Other pieces of equipment have also dropped in price, making it possible to build a functional recording studio for around $1,000. (Read the rest)

Leftovers: Gaming

Red Hat and Fedora