siddou.tk

Install DFC on Debian 8 Jessie

DFC is a nice alternative to df -h to check disk usage.
Sadly there is no package yet on Jessie, so you will install it from unstable repos or from source.
Here the quick install from source:

apt-get install cmake gettext
wget http://projects.gw-computing.net/attachments/download/467/dfc-3.0.5.tar.gz
tar xvf dfc-3.0.5.tar.gz
cd dfc-3.0.5/
mkdir build
cd build/
cmake ..
make
make install

and with puppet:

class dfc {

package { 'cmake': ensure => installed, }
package { 'gettext': ensure => installed, }

exec { 'dfc_install':
  cwd     => '/tmp',
  command => '/usr/bin/wget \
  http://projects.gw-computing.net/attachments/download/467/dfc-3.0.5.tar.gz &&
  /bin/tar xvf dfc-3.0.5.tar.gz &&
  cd dfc-3.0.5/ &&
  mkdir build &&
  cd build/ &&
  cmake .. &&
  make &&
  make install &&
  rm /tmp/dfc-3.0.5.tar.gz &&
  rm -rf /tmp/dfc-3.0.5',
  require => Package['cmake','gettext'],
  creates => '/usr/local/bin/dfc',
}

}

Tagged on: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *