<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pario TechnoBlob &#187; cheatsheet</title>
	<atom:link href="http://pario.no/tag/cheatsheet/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>aptitude cheatsheet</title>
		<link>http://pario.no/2008/03/25/aptitude-cheatsheet/</link>
		<comments>http://pario.no/2008/03/25/aptitude-cheatsheet/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 22:41:07 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://pario.no/2008/03/25/aptitude-cheatsheet/</guid>
		<description><![CDATA[aptitude is a great alternative to apt-get and the best way to install, remove, upgrade, and otherwise administer packages on you system with apt. aptitude solves orphaned dependencies and has a curses interface that blows the doors off of dselect. Finally, and most importantly, it takes advantage of one tool, doing many many operations: Syntax [...]]]></description>
			<content:encoded><![CDATA[<p><strong>aptitude</strong> is a great alternative to apt-get and the best way to install, remove, upgrade, and otherwise administer packages on you system with apt. aptitude solves orphaned dependencies and has a curses interface that blows the doors off of <strong>dselect</strong>. Finally, and most importantly, it takes advantage of one tool, doing many many operations:</p>
<table style="border-collapse: collapse" border="1">
<tr align="center">
<th>Syntax</th>
<th>Description</th>
</tr>
<tr>
<td>aptitude</td>
<td>Running it with no arguments brings up a curses based interface to search, navigate, install, update and otherwise administer packages</td>
</tr>
<tr>
<td>aptitude install</td>
<td>Installing software for your system, installing needed dependencies as well</td>
</tr>
<tr>
<td>aptitude -d install</td>
<td>Download packages to the package cache as necessary, but do not install or remove anything.</td>
</tr>
<tr>
<td>aptitude remove</td>
<td>Removing packages as well as orphaned dependencies</td>
</tr>
<tr>
<td>aptitude purge</td>
<td>Removing packages and orphaned dependencies as well as any configuration files left behind</td>
</tr>
<tr>
<td>aptitude search</td>
<td>Search for packages in the local apt package lists</td>
</tr>
<tr>
<td>aptitude update</td>
<td>Update the local packages lists</td>
</tr>
<tr>
<td>aptitude upgrade</td>
<td>Upgrade any installed packages that have been updated</td>
</tr>
<tr>
<td>aptitude clean</td>
<td>Delete any downloaded files necessary for installing the software on your system</td>
</tr>
<tr>
<td>aptitude dist-upgrade</td>
<td>Upgrade packages, even if it means uninstalling certain packages</td>
</tr>
<tr>
<td>aptitude show</td>
<td>Show details about a package name</td>
</tr>
<tr>
<td>aptitude autoclean</td>
<td>Delete only out-of-date packages, but keep current ones</td>
</tr>
<tr>
<td>aptitude hold</td>
<td>Fix a package at it&#8217;s current version, and don&#8217;t update it</td>
</tr>
</table>
<p>aptitude uses many of the same commands as apt-get. It is not a good idea to use both, you should either use aptitude or apt-get exclusively, or your dependencies might get confused.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDMvMjUvYXB0aXR1ZGUtY2hlYXRzaGVldC88d3B0Yj5hcHRpdHVkZSBjaGVhdHNoZWV0PHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/03/25/aptitude-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dpkg command cheatsheet</title>
		<link>http://pario.no/2008/03/19/dpkg-command-cheatsheet/</link>
		<comments>http://pario.no/2008/03/19/dpkg-command-cheatsheet/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 07:54:50 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://pario.no/2008/03/19/dpkg-cheatsheet/</guid>
		<description><![CDATA[Syntax Description Example dpkg -i {.deb package} Install the package dpkg -i zip_2.31-3_i386.deb dpkg -i {.deb package} Upgrade package if it is installed else install a fresh copy of package dpkg -i zip_2.31-3_i386.deb dpkg -R {Directory-name} Install all packages recursively from directory dpkg -R /tmp/downloads dpkg -r {package} Remove/Delete an installed package except configuration files [...]]]></description>
			<content:encoded><![CDATA[<table style="border-collapse: collapse" border="1">
<tr align="center">
<th><strong>Syntax</strong></th>
<th><strong>Description</strong></th>
<th><strong>Example</strong></th>
</tr>
<tr>
<td>dpkg -i {.deb package}</td>
<td>Install the package</td>
<td>dpkg -i  zip_2.31-3_i386.deb</td>
</tr>
<tr>
<td>dpkg -i {.deb package}</td>
<td>Upgrade package if it is installed else install a fresh copy of package</td>
<td>dpkg -i  zip_2.31-3_i386.deb</td>
</tr>
<tr>
<td>dpkg -R {Directory-name}</td>
<td>Install all packages recursively from directory</td>
<td>dpkg -R /tmp/downloads</td>
</tr>
<tr>
<td>dpkg -r {package}</td>
<td>Remove/Delete an installed package except configuration files</td>
<td>dpkg -r zip</td>
</tr>
<tr>
<td>dpkg -P {package}</td>
<td>Remove/Delete everything including configuration files</td>
<td>dpkg -P apache-perl</td>
</tr>
<tr>
<td>dpkg -l</td>
<td>List all installed packages, along with package version and short description</td>
<td>dpkg -l<br />
dokg -l | less<br />
dpkg -l &#8216;*apache*&#8217;<br />
dpkg -l | grep -i &#8216;sudo&#8217;</td>
</tr>
<tr>
<td>dpkg -l {package}</td>
<td>List individual installed packages, along with package version and short description</td>
<td>dpkg -l apache-perl</td>
</tr>
<tr>
<td>dpkg -L {package}</td>
<td>Find out files are provided by the installed package i.e. 	list where files were installed</td>
<td>dpkg -L apache-perl<br />
dpkg -L perl</td>
</tr>
<tr>
<td>dpkg -c {.Deb package}</td>
<td>List files provided (or owned) by the package i.e. List all files inside debian .deb package file, very useful to find where files would be installed</td>
<td>dpkg -c dc_1.06-19_i386.deb</td>
</tr>
<tr>
<td>dpkg -S {/path/to/file}</td>
<td>Find what package owns the file i.e. find out what package does file belong</td>
<td>dpkg -S /bin/netstat<br />
dpkg -S /sbin/ippool</td>
</tr>
<tr>
<td>dpkg -p {package}</td>
<td>Display details about package package group, version, maintainer, Architecture, display depends packages, description etc</td>
<td>dpkg -p lsof</td>
</tr>
<tr>
<td>dpkg -s {package} | grep Status</td>
<td>Find out if Debian package is installed or not (status)</td>
<td>dpkg -s lsof | grep Status</td>
</tr>
</table>
<p><font size="1">{package} &#8211; Replace with actual package name </font></p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDMvMTkvZHBrZy1jb21tYW5kLWNoZWF0c2hlZXQvPHdwdGI%2BZHBrZyBjb21tYW5kIGNoZWF0c2hlZXQ8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/03/19/dpkg-command-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpm command cheatsheet</title>
		<link>http://pario.no/2008/03/19/rpm-command-cheatsheet/</link>
		<comments>http://pario.no/2008/03/19/rpm-command-cheatsheet/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 07:44:39 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://pario.no/2008/03/19/rpm-cheatsheet-for-redhat-systems/</guid>
		<description><![CDATA[This is a simple cheatsheet for the rpm command and can be used on systems like RedHat that uses the command Syntax Description Example(s) rpm -ivh {rpm-file} Install the package rpm -ivh sendmail-cf-8.14.2-1.fc8.rpm rpm -ivh &#8211;test sendmail-8.14.2-1.fc8.rpm rpm -Uvh {rpm-file} Upgrade package rpm -Uvh sendmail-cf-8.14.2-1.fc8.rpm rpm -Uvh &#8211;test sendmail-8.14.2-1.fc8.rpm rpm -ev {package} Erase/remove/ an installed [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple cheatsheet for the rpm command and can be used on systems like RedHat that uses the command</p>
<table style="border-collapse: collapse" border="1">
<tr align="center">
<th><strong>Syntax</strong></th>
<th><strong>Description</strong></th>
<th><strong>Example(s)</strong></th>
</tr>
<tr>
<td>rpm -ivh {rpm-file}</td>
<td>Install the package</td>
<td>rpm -ivh sendmail-cf-8.14.2-1.fc8.rpm<br />
rpm -ivh &#8211;test sendmail-8.14.2-1.fc8.rpm</td>
</tr>
<tr>
<td>rpm -Uvh {rpm-file}</td>
<td>Upgrade package</td>
<td>rpm -Uvh  sendmail-cf-8.14.2-1.fc8.rpm<br />
rpm -Uvh &#8211;test sendmail-8.14.2-1.fc8.rpm</td>
</tr>
<tr>
<td>rpm -ev {package}</td>
<td>Erase/remove/ an installed package</td>
<td>rpm -ev sendmail</td>
</tr>
<tr>
<td>rpm -ev &#8211;nodeps {package}</td>
<td>Erase/remove/ an installed package without checking for dependencies</td>
<td>rpm -ev &#8211;nodeps sendmail</td>
</tr>
<tr>
<td>rpm -qa</td>
<td>Display list all installed packages</td>
<td>rpm -qa<br />
rpm -qa | less</td>
</tr>
<tr>
<td>rpm -qi {package}</td>
<td>Display installed information along with package version and short description</td>
<td>rpm -qi sendmail</td>
</tr>
<tr>
<td>rpm -qf {/path/to/file}</td>
<td>Find out what package a file belongs to i.e. find what package owns the file</td>
<td>rpm -qf /etc/passwd<br />
rpm -qf /bin/bash</td>
</tr>
<tr>
<td>rpm -qc {pacakge-name}</td>
<td>Display list of configuration file(s) for a package</td>
<td>rpm -qc httpd</td>
</tr>
<tr>
<td>rpm -qcf {/path/to/file}</td>
<td>Display list of configuration files for a command</td>
<td>rpm -qcf /usr/bin/locate</td>
</tr>
<tr>
<td>rpm -qa &#8211;last</td>
<td>Display list of all recently installed RPMs</td>
<td>rpm -qa &#8211;last<br />
rpm -qa &#8211;last | less</td>
</tr>
<tr>
<td>rpm -qpR {.rpm-file}<br />
rpm -qR {package}</td>
<td>Find out what dependencies a rpm file has</td>
<td>rpm -qpR sendmail-8.14.2-1.fc8.rpm<br />
rpm -qR bash</td>
</tr>
<tr>
<td>rpm &#8211;test {package}</td>
<td>Perform Installation Tests Only</td>
<td>rpm -i &#8211;test rpm-2.0.11-1.i386.rpm<br />
/bin/rpm conflicts with file from rpm-2.3-1<br />
/usr/bin/gendiff conflicts with file from rpm-2.3-1<br />
/usr/bin/rpm2cpio conflicts with file from rpm-2.3-1<br />
/usr/bin/rpmconvert conflicts with file from rpm-2.3-1<br />
/usr/man/man8/rpm.8 conflicts with file from rpm-2.3-1<br />
error: rpm-2.0.11-1.i386.rpm cannot be installed</td>
</tr>
<tr>
<td>rpm &#8211;replacepkgs</td>
<td>Install the Package Even If Already Installed. Is used to force RPM to install a package that it believes to be installed already. This option is normally used if the installed package has been damaged somehow and needs to be fixed up.</td>
<td>&nbsp;</td>
</tr>
</table>
<p>{package} &#8211; Replace with actual package name</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDMvMTkvcnBtLWNvbW1hbmQtY2hlYXRzaGVldC88d3B0Yj5ycG0gY29tbWFuZCBjaGVhdHNoZWV0PHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/03/19/rpm-command-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

