<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>LinuxQuestions.org - Blogs - blue_print</title>
		<link>http://www.linuxquestions.org/questions/blog/blue_print-526517/</link>
		<description>LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.</description>
		<language>en</language>
		<lastBuildDate>Fri, 24 May 2013 00:07:49 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://lqo-thequestionsnetw.netdna-ssl.com/questions/images/misc/rss.jpg</url>
			<title>LinuxQuestions.org - Blogs - blue_print</title>
			<link>http://www.linuxquestions.org/questions/blog/blue_print-526517/</link>
		</image>
		<item>
			<title>Upgrading CentOS to 5.6</title>
			<link>http://www.linuxquestions.org/questions/blog/blue_print-526517/upgrading-centos-to-5-6-4048/</link>
			<pubDate>Tue, 23 Aug 2011 01:50:45 GMT</pubDate>
			<description>If you have CentOS 5.5 of lower of this version installed, please take the backup anything you care about it.Then, you can update it to 5.6 using the...</description>
			<content:encoded><![CDATA[<div>If you have CentOS 5.5 of lower of this version installed, please take the backup anything you care about it.Then, you can update it to 5.6 using the steps given <a href="http://blueprintlinux.com/blog/?p=140" target="_blank" rel="nofollow">here</a>.</div>

]]></content:encoded>
			<dc:creator>blue_print</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/blue_print-526517/upgrading-centos-to-5-6-4048/</guid>
		</item>
		<item>
			<title>Convert ext2 to ext3 file system</title>
			<link>http://www.linuxquestions.org/questions/blog/blue_print-526517/convert-ext2-to-ext3-file-system-3975/</link>
			<pubDate>Thu, 14 Jul 2011 04:31:18 GMT</pubDate>
			<description>The conversion procedure is very simple enough. Let us assume /dev/sda6 (ext2 now) mounted on /convert.  You will be seeing fstb entries like, 
...</description>
			<content:encoded><![CDATA[<div>The conversion procedure is very simple enough. Let us assume /dev/sda6 (ext2 now) mounted on /convert.  You will be seeing fstb entries like,<br />
<blockquote><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">/dev/sda6         /convert             ext2    defaults        0 0</pre>
</div></blockquote>Unmount the partition<br />
<blockquote><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">umount /dev/sda6</pre>
</div></blockquote>Enable Journal (converting to ext3) using tune2fs command,<br />
<blockquote><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">tune2fs -j /dev/sda6</pre>
</div></blockquote>Edit /etc/fstab and for /dev/sda6 change the file system type to ext3. Finally, the entry should be like this,<br />
<blockquote><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">/dev/sda6         /convert             ext3    defaults        1 2</pre>
</div></blockquote>Mount the partition using mount command,<br />
<blockquote><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">mount -a</pre>
</div></blockquote>If above command doesn’t work, reboot the system and check.</div>

]]></content:encoded>
			<dc:creator>blue_print</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/blue_print-526517/convert-ext2-to-ext3-file-system-3975/</guid>
		</item>
		<item>
			<title>RPM commands</title>
			<link>http://www.linuxquestions.org/questions/blog/blue_print-526517/rpm-commands-3869/</link>
			<pubDate>Fri, 03 Jun 2011 08:41:53 GMT</pubDate>
			<description>RPM package is a powerful utility to manage the software in all major Linux distributions.  RPMs can be used to, 
 
* Install packages 
*     Remove...</description>
			<content:encoded><![CDATA[<div>RPM package is a powerful utility to manage the software in all major Linux distributions.  RPMs can be used to,<br />
<ul><li>Install packages</li>
<li>    Remove packages</li>
<li>    Upgrade packages</li>
<li>    Verify packages</li>
</ul><br />
Here are some useful command to manage RPM packages,<br />
<br />
 <br />
<br />
1. Getting detailed information about the package httpd<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qi httpd</pre>
</div>2. Determining which package installed the file /etc/httpd/conf.d/httpd-portal.conf,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qf /etc/httpd/conf.d/httpd-portal.conf</pre>
</div>3. Showing all the files installed my httpd<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -ql httpd</pre>
</div>4. Viewing the documentation files for the command httpd,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qd httpd</pre>
</div>5. Listing all files included in an rpm file,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qpl /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm</pre>
</div>6. Verify if the package is installed or not,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qa | grep httpd</pre>
</div>7. To check what has changed in the files on the system since the HTTPD rpm originally installed,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -V httpd</pre>
</div>8. Checking package to ensure its integrity and origin: (NOTE: gpg or pgp software must be installed on your system before you use this command)<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -K /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm</pre>
</div>9. To install wget RPM package,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -ivh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm</pre>
</div>10. Upgrading the package wget: (NOTE: if the package is not installed it will install it for You, like option “-ivh”),<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -Uvh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm</pre>
</div>11. Upgrade the package wget (if it exists already),<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -Fvh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm</pre>
</div>12. Removing the RPM package wget,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -e wget</pre>
</div>13. To list the configuration file of a package,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qc httpd</pre>
</div>14. To display the list of all recently installed packages,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qa –last</pre>
</div>15. To find out what dependencies httpd package has,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qR httpd</pre>
</div>16. To find out what dependencies an rpm file has,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qpR /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm</pre>
</div>17.  To display list of configuration files for a command,<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">rpm -qcf /usr/sbin/httpd</pre>
</div></div>

]]></content:encoded>
			<dc:creator>blue_print</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/blue_print-526517/rpm-commands-3869/</guid>
		</item>
	</channel>
</rss>
