fredag 13 mars 2015

Linux - Build deb ffrom source and unpack deb files

#to use apt-get source we need add this to sources.list
sudo gedit /etc/apt/sources.list

deb http://packages.linuxmint.com/ maya main upstream import universe
deb-src http://packages.linuxmint.com/ maya main upstream import universe #Added by software-properties
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb-src http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free
deb http://archive.getdeb.net/ubuntu precise-getdeb apps
deb http://archive.getdeb.net/ubuntu precise-getdeb games
deb http://liveusb.info/multisystem/depot all main

sudo apt-get install checkinstall autoconf

#build pidgin
sudo apt-get build-dep pidgin
sudo apt-get -b source pidgin
sudo autoconf && ./configure && make && make install && checkinstall

#build ruby2.0
sudo apt-get build-dep ruby2.0
sudo apt-get -b source ruby2.0
sudo autoconf && ./configure && make && make install && checkinstall








#build gem
sudo apt-get build-dep gem
sudo apt-get -b source gem
sudo autoconf && ./configure && make && make install && checkinstall



sudo dpkg --unpack program.deb
sudo tar -zxvf data.tar.gz

dpkg -x package.deb ./deb/

Inga kommentarer: