How to install software in Linux

Quick How To Guide

Shared libraries

Print command dependencies of shared libraries

# ldd /bin/ls

Add new shared library to program icq

# ldconfig -n /opt/icq/lib

Actual shared library in cache (/etc/ld.so.cache)

# ldconfig -p

Get settings of shared libraries

# cat /etc/ld.so.conf.d /etc/ld.so.conf.d/*

RPM Package Manager (RPM)

Install

# rpm -i package.rpm

Uninstall (erase)

# rpm -e package.rpm

Upgrade

# rpm -U package.rpm

Upgrade only if older version is installed

# rpm -F package.rpm

Print list of all installed packages

# rpm -qa

Find verbose information about package

# rpm -qv package

Print information about a package

# rpm -ql package

Display only the config files in package

# rpm -qc package

Display install destination folder before installation

# rpm -qpl package.rpm

Print changelog before installation

# rpm -qp --changelog package.rpm

Print name of package which binds to file

# rpm -qf /etc/exports

Integrity verification of all packages

# rpm -Va

Debian Package (dpkg)

Install

# dpkg -i package.deb

Uninstall (remove)

# dpkg -r package

Uninstall (include config files)

# dpkg -r --purge package

Display package's files content

# dpkg -c package.deb

Display status of specified package

# dpkg -s package.deb

List files installed to your system from package

# dpkg -L package

Print partially installed packages and give suggestion how to fix them

# dpkg -C package

List of all installed packages

# dpkg -l

Source code

Extraction

# tar –xzf /path/name/package.tar.gz 
# tar –xjf /path/name/package.tar.bz2

Prepare for compile

# ./configure

Start compile

# make

Install

# make install

Was this information helpful to you? You have the power to keep it alive.
Each donated € will be spent on running and expanding this page about UNIX Shell.