Installing non repository software in Debian (including from source)

<pre>#DEB FILES
su
dpkg -i foo.deb #install
dpkg -r foo #uninstall

# RPM
su
alien -i foo.rpm #install

# SOURCE
sudo aptitude install build-essential # install prerequisites

tar -xvzf foo.tar.gz #unpack
cd foo

./configure #or
./configure --bindir=/usr/bin #will install to /user/bin and not residing dir

# run make or dh_make
make
dh_make
# The later formats the package to be in line with Debian standards and is encouraged over make

su
install #or
sudo checkinstall -D   # This install a deb package manageable in Symantec.

#UNINSTALL (INSTALLED FROM SOURCE CODE)
su
cd <app dir>
make uninstall
cd ..
rm -rf

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s