<?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>Open-Moments &#187; uninstall</title>
	<atom:link href="http://open-moments.com/tag/uninstall/feed/" rel="self" type="application/rss+xml" />
	<link>http://open-moments.com</link>
	<description>Linux, programming and other geeky stuff</description>
	<lastBuildDate>Wed, 14 Mar 2012 18:48:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Uninstalling Software</title>
		<link>http://open-moments.com/2012/01/08/uninstalling-software/</link>
		<comments>http://open-moments.com/2012/01/08/uninstalling-software/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 14:30:44 +0000</pubDate>
		<dc:creator>deathadder</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[bz]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[gz]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[uninstall]]></category>

		<guid isPermaLink="false">http://open-moments.com/?p=26</guid>
		<description><![CDATA[Here I will explain the ways to uninstall software you installed via source code, Debian and Red Hat packages. To remove software you&#8217;ll need to run the commands below as the root user. Source code (tar.gz / tar.bz2) Debian Packages (debs) Red Hat Packages (rpms) Source code To uninstall from source it is easiest to [...]]]></description>
			<content:encoded><![CDATA[<p>Here I will explain the ways to uninstall software you installed via source code, Debian and Red Hat packages. To remove software you&#8217;ll need to run the commands below as the <a title="Change to root user" href="http://open-moments.com/2012/01/08/installing-software/#su" target="_blank">root user</a>.</p>
<p><a href="#src">Source code (tar.gz / tar.bz2)</a><br />
<a href="#deb">Debian Packages (debs)</a><br />
<a href="#rpm">Red Hat Packages (rpms)</a></p>
<h3><a name="src"></a>Source code</h3>
<p>To uninstall from source it is easiest to keep the directory you installed from around after installation. Assuming that the directory you installed the application from was /home/user/src/foo-2.1.2 you will need to change into that directory as root. Once you are within that directory you need to issue the command make uninstall. A typical uninstall would look like this.</p>
<p><code>[root@host ~]# cd ~user/src/foo-2.1.2<br />
[root@host /home/user/src/foo-2.1.2]# make uninstall<br />
list='foo'; for p in $list;<br />
do rm -f /usr/local/sbin/'echo $p|sed 's/$//'|sed 's,x,x,'|sed's/$//''; done make uninstall-man8 make[1]: Entering directory<br />
'/usr/local/src/foo-2.1.2'<br />
rm -f /usr/local/man/man8/foo.8 make[1]:<br />
Leaving directory '/usr/local/src/foo-2.1.2'</code></p>
<p>If you get the error below, then you&#8217;re unable to run make install for the software package and should read the README and INSTALL files to see if there are any instructions on uninstalling. Failing that you will have to check documentation on the projects website / forums etc to see which files need to be removed from your system.</p>
<p><code>make: *** No rule to make target 'unistall'. Stop.</code></p>
<h3><a name="deb"></a>Debian Packages</h3>
<p>Uninstalling DEB files is as simple as their installation, lets assume we installed the file foo-2.1.2.deb which provided the package foo. You would need to switch to <a title="Change to root user" href="http://open-moments.com/2012/01/08/installing-software/#su">root</a> and run the dpkg command like so:</p>
<p><code>[root@host ~]# dpkg -r foo</code></p>
<p>If there are no error messages this will have removed the foo package from your system.</p>
<h3><a name="rpm"></a>Red Hat Packages</h3>
<p>Uninstalling RPM packages requires you to be <a title="Change to root user" href="http://open-moments.com/2012/01/08/installing-software/#su">root</a> and use the rpm command. If the RPM installed was foo-2.1.2.rpm and provided the package foo you would uninstall it with:</p>
<p><code>[root@host ~]# rpm -e foo</code></p>
<p>If there aren&#8217;t any error messages you would have removed the application from your system. As with software installation it is recommended to use a package manager for removing software.</p>
]]></content:encoded>
			<wfw:commentRss>http://open-moments.com/2012/01/08/uninstalling-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

