Monday, August 22, 2016

Package management

dpkg -i <package_file_name> (install package)
dpkg -r <uninstall package but not configuration files)
dpkg -r -B <package_file_name> (other packages will be disabled that are dependent on the package being uninstalled)
dpkg -i -E <package_file_name> (dont't install if the same version is already installed)
dpkg -i -G <package_file_name> (don't install if newer version already is installed)
dpkg -p <package_name> (list information about package)
dpkg -P <package_name> (purge or remove package and configuration files)
dpkg -I <package_name> (display info about a package NOT installed)
dpkg -l  (display info about all packages on the system)
dpkg -L <package_name> (list files installed by package)
dpkg -S <file_name> (list package that installed the specified file)
dpkg --configure <package_name> (reconfigure package)
dpkg-reconfigure <package_name> (reconfigure package)


apt-cache showpkg [packagename] (displays information about package. If package is not entered, display info about all
packages)
apt-cache show [packagename] (displays information about package. If package is not entered, display info about all
packages)
apt-cache stats (displays all packages installed and dependencies)
apt-cache pkgnames [package_name] (dtermines if package is installed. If package not entered, displays all packages
installed)
apt-cache search <keyword> (search for packages based on keyword description)
apt-cache unmet (display dependencies not installed)
apt-cache depends (displays installed dependencies)



apt-get install <package_name> (installs package)
apt-get remove <package_name> (removes/uninstalls package)
apt-get upgrade  (upgrades all packages)
apt-get dist-upgrade  (upgrades all packages except for when dependencies will break)
apt-get check  (Verifies the integrity of installed packages as well as the package database)
apt-get clean (Removes outdated information from the package database)


rpm -i <package_file_name> (installs package (and dependencies))
rpm -i --nodeps <package_name> (installs package without considering dependecies)
rpm -i --test <package_name (simulates an install but does not actuall install)
rpm -ivh <package_file_name> (install displaying progress bar)
rpm -F <package_name> (freshen package)
rpm -U <package_file_name> |<packagename> (upgrade or install package)
rpm -Uhv <package_file_name> |<packagename> (upgrade or install package displaying progress bar)
rpm -U --replacepkgs <package_file_name> (repair an install)
rpm -e <package_name> (remove/erase package (uninstall))
rpm -q <package_name> (check to see if a package is installed)
rpm -qa (query a packages)
rpm -qi <package_name> (query and display info about specified package if installed)
rpm -q --provides <package_name> (displays what functions specified package provides)
rpm -q --whatprovides <utility/function> (displays installed package of specified  utility/ function)
rpm -q --requires <package_name> (displays dependencies required by specified package)
rpm -ql <package_name> (displays list of files that are included in an installed RPM package)
rpm -V <package_name> (verifies specified package)
rpm -Va (verifies all packages installed)
rpm --checksig <package_file_name> (verifies the digital signature)

yum install <package_name> (installs package)
yum remove <package_name> (removes/uninstalls package)
yum search <keyword> (search for package using keyword description)
yum update [package] (update to the latest current version)
yum upgrade [package_name] (update package and forces removal of obsolete packages)
yumdownloader <package_name> (download package but don't install)
yum list all (list all packages in repositories and installed)
yum list installed (list all packages installed)
yum list installed <package_name> (determine if a package is installed)
yum list <package_name> (searches repositories for package)
yum list available (dislays all packages available for installation in repositories)
yum list updates (list of updates for installed packages)
yum list update <package_name> (checks for updates of a specified package)
yum info <package_name> (display info about the specified package, including version and dependecies)
yum whatprovides <path/file_name> (idetifies the RPM package that provides the specified file)
createrepo /path (create a new repository)






gunzip ./filename.tar.gz
./configure
./make
./make install
./configure
./make
./make uninstall

1 comment: