<?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>RedHatVN Network &#124; Ho Tro Linux &#124; Support Linux &#124; Linux VN</title>
	<atom:link href="http://redhatvn.net/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 19 Jul 2010 08:39:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ghosting The Machine</title>
		<link>http://redhatvn.net/ghosting-the-machine</link>
		<comments>http://redhatvn.net/ghosting-the-machine#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:39:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1217</guid>
		<description><![CDATA[This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). Credit goes to &#8216;topdog&#8217; for this. You might have a small office where you customise one desktop just how you like it and need to roll this out to N [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). Credit goes to &#8216;topdog&#8217; for this.</p>
<p>You might have a small office where you customise one desktop just how you like it and need to roll this out to N other PC&#8217;s or simply want a backup of a server or desktop to another machine or even to an image file.<br />
<span id="more-1217"></span><br />
The main tool here is netcat which is extremely powerful and has a multitude of other great uses that won&#8217;t be covered here.</p>
<p>Target Machine:</p>
<p>** Boot to linux rescue mode with networking (CentOS works fine)</p>
<p>Initiate netcat to listen on port 30 &#8211; # nc -l -p<br />
| dd of=/dev/sda (assuming the hard drive is sda and not hda):</p>
<p><code># nc -l -p 30 | dd of=/dev/sda</code></p>
<p>Source Machine:</p>
<p>Dump the contents of the disk to the target PC &#8211; #dd if=/dev/sda | nc</p>
<p><code># dd if=/dev/sda | nc 192.168.0.20 30</code></p>
<p>Then to check that traffic is flowing, on the source go to another terminal (ALT/F2) and dump the tcp data on the NIC (assuming it&#8217;s eth0):</p>
<p><code>tcpdump -tnli eth0 port 30</code></p>
<p>If you just want a backup image you could change the above output on the taget to:</p>
<p><code># nc -l -p 30 | dd of=mybackup.img</code></p>
<p>That&#8217;s it. Naturally the target PC/disk cannot be smaller than the source:) I hope this saves someone a lot of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/ghosting-the-machine/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable imap/pop3 for a particular user</title>
		<link>http://redhatvn.net/disable-imappop3-for-a-particular-user</link>
		<comments>http://redhatvn.net/disable-imappop3-for-a-particular-user#comments</comments>
		<pubDate>Thu, 29 Apr 2010 09:10:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mail server]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1196</guid>
		<description><![CDATA[Edit /etc/dovecot.conf, find: mechanisms = plain Add after: passdb passwd-file { args = /etc/dovecot-deny.%Ls deny = yes } Now use the following script to disable IMAP (or POP3 (replace IMAP with POP3 in the script)) access (usage: ./script allow/deny usename): #!/bin/sh # # Script used to deny IMAP access for a particular user show_help() { [...]]]></description>
			<content:encoded><![CDATA[<p>Edit /etc/dovecot.conf, find:</p>
<p><code>mechanisms = plain</code></p>
<p>Add after:<br />
<span id="more-1196"></span></p>
<blockquote><p>passdb passwd-file {<br />
    args = /etc/dovecot-deny.%Ls<br />
    deny = yes<br />
  }</p></blockquote>
<p>Now use the following script to disable IMAP (or POP3 (replace  IMAP with POP3 in the script)) access (usage: ./<strong>script allow/deny</strong> <strong>usename</strong>):</p>
<blockquote><p>#!/bin/sh<br />
#<br />
# Script used to deny IMAP access for a particular user</p>
<p>show_help()<br />
{<br />
        echo &#8220;IMAP allow/deny script.&#8221;;<br />
        echo &#8220;&#8221;;<br />
        echo &#8220;Usage: $0 allow/deny username&#8221;;<br />
        echo &#8220;&#8221;;<br />
}</p>
<p>if [ $# -eq 2 ]; then<br />
        echo &#8220;Using $2.&#8221;<br />
else<br />
        show_help;<br />
        exit 1;<br />
fi</p>
<p>IMAPDENY=/etc/dovecot-deny.imap</p>
<p>OS=`uname`;</p>
<p>if [ $1 = "allow" ]; then<br />
        OPTION=allow<br />
else<br />
        OPTION=deny<br />
fi</p>
<p>USER=$2</p>
<p>if [ ${OPTION} = "allow" ]; then<br />
        if [ "`grep -c \"${USER}\" ${IMAPDENY}`" = "0" ]; then<br />
                echo &#8220;User ${USER} is already allowed.&#8221;;<br />
                exit 1;<br />
        fi<br />
fi</p>
<p>if [ ${OPTION} = "deny" ]; then<br />
        if [ "`grep -c \"${USER}\" ${IMAPDENY}`" = "1" ]; then<br />
                echo &#8220;User ${USER} is already denied.&#8221;;<br />
                exit 1;<br />
        fi<br />
fi</p>
<p>if [ ! -d /home/${USER} ]; then<br />
        echo &#8220;User ${USER} does not exist.&#8221;<br />
        exit 1;<br />
fi</p>
<p>if [ ${OPTION} = "allow" ]; then<br />
        perl -pi -e &#8220;s/${USER}\n//g&#8221; ${IMAPDENY}<br />
fi</p>
<p>if [ ${OPTION} = "deny" ]; then<br />
        echo &#8220;$USER&#8221; &gt;&gt; ${IMAPDENY}<br />
fi<br />
exit 0;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/disable-imappop3-for-a-particular-user/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updating your DirectAdmin License manually</title>
		<link>http://redhatvn.net/updating-your-directadmin-license-manually</link>
		<comments>http://redhatvn.net/updating-your-directadmin-license-manually#comments</comments>
		<pubDate>Tue, 20 Apr 2010 02:08:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Directadmin]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1170</guid>
		<description><![CDATA[If you need to update your DirectAdmin license manually, you can do so by running the following commands: cd /usr/local/directadmin/scripts ./getLicense.sh 123 1234 service directadmin restart Where 123 and 1234 are your Client ID and License ID, respectively. If there are errrors extracting the update.tar.gz file, then run: head -n 1 /usr/local/directadmin/conf/license.key to search for [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to update your DirectAdmin license manually, you can do so  by running the following commands:<br />
<span id="more-1170"></span></p>
<blockquote><p><code><br />
cd  /usr/local/directadmin/scripts<br />
./getLicense.sh <strong>123 1234</strong><br />
service directadmin restart</code></p></blockquote>
<p>Where 123 and 1234 are your Client ID and  License ID, respectively. If there are errrors extracting the  update.tar.gz file, then run:<br />
<code>head -n 1 /usr/local/directadmin/conf/license.key</code></p>
<p>to search for an error. If there is an readable error inside the file,  double check the IP you are using matches the IP in the license on our  system.  Also check that it&#8217;s active in our clients section.  Failing  that, you&#8217;ll need to contact sales@directadmin.com to get your license  activated or updated.</p>
<p>If you have multiple IPs on your device and wget is binding to the  incorrect one, you can specify the IP to bind to by adding it as the  last argument:</p>
<blockquote><p><code><br />
cd /usr/local/directadmin/scripts<br />
./getLicense.sh 123 1234 <strong>1.2.3.4</strong><br />
service directadmin restart</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/updating-your-directadmin-license-manually/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How-To: Horde Webmail DirectAdmin</title>
		<link>http://redhatvn.net/how-to-horde-webmail-directadmin</link>
		<comments>http://redhatvn.net/how-to-horde-webmail-directadmin#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:37:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1214</guid>
		<description><![CDATA[Hi guys, seems like it&#8217;s been sometime since the previous how-to guide for horde webmail, since I see someone needing help, I might as well post how I did it This is only tested on CENTOS 4.2 1) First we need c-client to be installed if you have not done so. But there will be [...]]]></description>
			<content:encoded><![CDATA[<p>Hi guys, seems like it&#8217;s been sometime since the previous how-to guide  for horde webmail, since I see someone needing help, I might as well  post how I did it</p>
<p><em>This is only tested on CENTOS 4.2</em><br />
<span id="more-1214"></span></p>
<p>1) First we need c-client to be installed if you have not done so. But  there will be some things that is needed to be install first, so let&#8217;s  use yum first.</p>
<p><code># yum install pam<br />
# yum install pam-devel</code></p>
<p>Now we download c-client file</p>
<p><code># wget <a href="ftp://ftp.cac.washington.edu/imap/c-client.tar.Z" target="_blank">ftp://ftp.cac.washington.edu/imap/c-client.tar.Z</a><br />
# tar -zxvf c-client.tar.Z<br />
# cd imap-2004g (this is the latest for now)<br />
#  nano Makefile (read inside which format you need to use, eg  "slx",  "lnp", "lrh", or "lsu")</code></p>
<p>For centos, we will use this</p>
<p><code># make lrh EXTRACFLAGS=-I/usr/kerberos/include  EXTRALDFLAGS=-I/usr/kerberos/lib</code></p>
<p>Let&#8217;s create directories for c-client, name varies on version.<br />
<code># mkdir /usr/local/imap-2004g</code></p>
<p>Create libraries dir<br />
<code># mkdir /usr/local/imap-2004d/lib</code></p>
<p>Create include dir<br />
<code># mkdir /usr/local/imap-2004d/include</code></p>
<p>Change dir into the c-client dir.<br />
<code># cd c-client/</code></p>
<p>Copy all .h files into /usr/local/imap-2004d/include/<br />
<code># cp *.h /usr/local/imap-2004d/include/</code></p>
<p>Copy all .c files.<br />
<code># cp *.c /usr/local/imap-2004d/lib/</code></p>
<p>Copy c-client.a<br />
<code># cp c-client.a /usr/local/imap-2004d/lib/libc-client.a</code></p>
<p>Now configure the ./configuration.php (or _ap2 if you are on apache2) ,  please take note of the directory name you created.</p>
<blockquote><p>&#8211;with-imap=/usr/local/imap-2004g \<br />
&#8211;with-gettext
</p></blockquote>
<p>It should look like this</p>
<blockquote><p>#!/bin/sh<br />
./configure \<br />
&#8211;with-apxs2 \<br />
&#8211;with-curl \<br />
&#8211;with-curl-dir=/usr/local/lib \<br />
&#8211;with-gd \<br />
&#8211;with-gd-dir=/usr/local/lib \<br />
&#8211;with-gettext \<br />
&#8211;with-jpeg-dir=/usr/local/lib \<br />
&#8211;with-kerberos \<br />
&#8211;with-mcrypt \<br />
&#8211;with-mhash \<br />
&#8211;with-mysql \<br />
&#8211;with-pear \<br />
&#8211;with-png-dir=/usr/local/lib \<br />
&#8211;with-xml \<br />
&#8211;with-zlib \<br />
&#8211;with-zlib-dir=/usr/local/lib \<br />
&#8211;with-zip \<br />
&#8211;enable-bcmath \<br />
&#8211;enable-calendar \<br />
&#8211;enable-ftp \<br />
&#8211;enable-magic-quotes \<br />
&#8211;enable-sockets \<br />
&#8211;enable-track-vars \<br />
&#8211;enable-mbstring \<br />
&#8211;enable-memory-limit \<br />
&#8211;with-imap=/usr/local/imap-2004g \<br />
&#8211;with-gettext
</p></blockquote>
<p>once you are done, let&#8217;s recompile php.</p>
<p><code># /usr/local/directadmin/customapache</code></p>
<p><code># ./build php</code></p>
<p><code># cd php-version</code><br />
-#/usr/local/directadmin/customapache/configure.php ( _ap2 for Apache2)<br />
<code># make</code><br />
<code># make install</code></p>
<p><code># service httpd restart</code></p>
<p>Now check your phpinfo, you should see something like this :</p>
<blockquote><p>imap<br />
IMAP c-Client Version 	2004</p></blockquote>
<p>Now we are done with c-client, lets proceed to horde installation</p>
<p><code># pear install Log<br />
# pear install Mail_Mime<br />
# cd /var/www/html<br />
# wget <a href="http://ftp.horde.org/pub/horde/horde-latest.tar.gz" target="_blank">http://ftp.horde.org/pub/horde/horde-latest.tar.gz</a><br />
# tar xzpf horde-latest.tar.gz<br />
# rm -f horde-latest.tar.gz<br />
# dir</code></p>
<p>Horde 3.1 is the version i got, so we will..</p>
<p><code># nano /etc/httpd/conf/httpd.conf</code></p>
<p>add this line</p>
<blockquote><p>
Alias /horde-3.1 /var/www/html/horde-3.1/
</p></blockquote>
<p>along with</p>
<blockquote><p>alias /phpmyadmin /var/www/html/PhpMyadmin/</p></blockquote>
<p>lets restart apache for the change in httpd.conf to take effect</p>
<p><code># service httpd restart</code></p>
<p>Now we go to horde&#8217;s database folder</p>
<p><code># cd /var/www/html/horde-3.1/scripts/sql</code></p>
<p>Just a side note, if you do not know about the sql root password(it  is different from the root password), do this command</p>
<p><code>#cat /usr/local/directadmin/scripts/setup.txt</code></p>
<p><code># mysql -u root -psqlrootpassword &lt; create.mysql.sql</code></p>
<p><code>#mysqladmin --user=root --password=sqlrootpassword reload</code></p>
<p><code>#mysql --user=horde --password=horde horde</code></p>
<p><code># cd ../../config</code></p>
<p><code># for foo in *.dist; do cp $foo `basename $foo .dist`; done</code></p>
<p>Okay, we have done phase 1 for the horde webmail, let&#8217;s test it out</p>
<p>go to <a href="http://www.yourdomain.com/horde-3.1/test.php" target="_blank">http://www.yourdomain.com/horde-3.1/test.php</a></p>
<p>you should see something like this:</p>
<blockquote><p>Horde Version<br />
Horde: 3.1<br />
Horde Applications<br />
Horde: 3.1<br />
Imp: H3 (4.1) (run Imp tests)<br />
PHP Version<br />
View phpinfo() screen<br />
View loaded extensions<br />
PHP Version: 5.0.5<br />
PHP Major Version: 5.0<br />
PHP Minor Version: 5<br />
PHP Version Classification: release<br />
You are running a supported version of PHP.<br />
PHP Module Capabilities<br />
Ctype Support: Yes<br />
DOM XML Support: Yes<br />
FTP Support: Yes<br />
GD Support: Yes<br />
Gettext Support: Yes<br />
Iconv Support: Yes<br />
IMAP Support: Yes<br />
LDAP Support: No<br />
Mbstring Support: Yes<br />
Mcrypt Support: Yes<br />
MIME Magic Support (fileinfo): No<br />
The fileinfo PECL module or the mime_magic PHP extension (see below)  will most likely provide faster MIME Magic lookups than the built-in  Horde PHP magic code. See horde/docs/INSTALL for information on how to  install PECL/PHP extensions.<br />
memcached Support (memcache): No<br />
The memcache PECL module is needed only if you are using the memcached  SessionHandler. See horde/docs/INSTALL for information on how to install  PECL/PHP extensions.<br />
MIME Magic Support (mime_magic): No<br />
The fileinfo PECL module (see above) or the mime_magic PHP extension  will most likely provide faster MIME Magic lookups than the built-in  Horde PHP magic code. See horde/docs/INSTALL for information on how to  install PECL/PHP extensions.<br />
MySQL Support: Yes<br />
OpenSSL Support: No<br />
PostgreSQL Support: No<br />
Session Support: Yes<br />
XML Support: Yes<br />
Zlib Support: Yes<br />
Miscellaneous PHP Settings<br />
magic_quotes_runtime disabled: Yes<br />
memory_limit disabled: No<br />
If PHP&#8217;s internal memory limit is turned on and if not set high enough  Horde will not be able to handle large data items (e.g. large mail  attachments in IMP). If possible, you should disable the PHP memory  limit by recompiling PHP without the &#8220;&#8211;enable-memory-limit&#8221; flag. If  this is not possible, then you should set the value of memory_limit in  php.ini to a sufficiently high value (Current value of memory_limit:  64M).<br />
safe_mode disabled: Yes<br />
session.use_trans_sid disabled: Yes<br />
session.auto_start disabled: Yes<br />
File Uploads<br />
file_uploads enabled: Yes<br />
upload_max_filesize: 10M<br />
post_max_size: 8M<br />
Required Horde Configuration Files<br />
config/conf.php: Yes<br />
config/mime_drivers.php: Yes<br />
config/nls.php: Yes<br />
config/prefs.php: Yes<br />
config/registry.php: Yes<br />
PHP Sessions<br />
Session counter: 1<br />
To unregister the session: click here<br />
PEAR<br />
PEAR Search Path (PHP&#8217;s include_path):   /var/www/html/horde-3.1/lib:.:/usr/local/lib/php<br />
PEAR: Yes<br />
Recent PEAR: Yes<br />
Mail: Yes<br />
Mail_Mime: Yes<br />
Log: Yes<br />
DB: Yes<br />
Net_Socket: Yes<br />
Date: Yes<br />
Auth_SASL: Yes<br />
HTTP_Request: No<br />
Parts of Horde (HTML composition in IMP, Jonah, the XML-RPC  client/server) use the HTTP_Request library to retrieve URLs and do  other HTTP requests.<br />
File: Yes<br />
Net_SMTP: Yes<br />
Services_Weather: No<br />
Services_Weather is used by the weather applet/block on the portal page.<br />
Cache: No<br />
Cache is used by the Services_Weather module on the weather applet/block  on the portal page.<br />
XML_Serializer: No<br />
XML_Serializer is used by the Services_Weather module on the weather  applet/block on the portal page.
</p></blockquote>
<p>Those that is mentioned <strong>No</strong> above will not affect the  installation.</p>
<p>I realise I missed alot of pear module when I installed, so some of them  are&#8230;</p>
<blockquote><p>pear install DB<br />
pear install Net_Socket<br />
pear install Date<br />
pear install Auth_SASL<br />
pear install File<br />
pear install Net_SMTP</p></blockquote>
<p>okay now, we are done installing horde, but just horde is simply  no-good, so we will need to install a external project, we will be using  <strong>IMP</strong></p>
<p><code># cd /var/www/html/horde-3.1</code></p>
<p><code># wget <a href="http://ftp.horde.org/pub/imp/imp-latest.tar.gz" target="_blank">http://ftp.horde.org/pub/imp/imp-latest.tar.gz</a></code></p>
<p><code># tar xzpf imp-latest.tar.gz</code></p>
<p><code># rm -f imp-latest.tar.gz</code></p>
<p><code># mv imp-h3-4.1 imp</code></p>
<p><code># cd /var/www/html/horde-3.1/imp/config</code></p>
<p><code># for foo in *.dist; do cp $foo `basename $foo .dist`; done</code></p>
<p>Now, this just installs Horde and IMP. Lets go to <a href="http://www.yourdomain.com/horde-3.1" target="_blank">http://www.yourdomain.com/horde-3.1</a> and go under administration, and do <strong>setup</strong> for horde and IMP.</p>
<p>You should be good to go now</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-horde-webmail-directadmin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to extract RPM or DEB packages</title>
		<link>http://redhatvn.net/how-to-extract-rpm-or-deb-packages</link>
		<comments>http://redhatvn.net/how-to-extract-rpm-or-deb-packages#comments</comments>
		<pubDate>Thu, 22 Apr 2010 10:08:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1172</guid>
		<description><![CDATA[RPM and DEB packages are both containers for other files. An RPM is some sort of cpio archive. On the other hand, a DEB file is a pure ar archive. So, it should be possible to unpack their contents using standard archiving tools, regardless of your distribution’s package format. Under normal conditions, you should use [...]]]></description>
			<content:encoded><![CDATA[<p>RPM and DEB packages are both containers for other files. An RPM is  some sort of <strong>cpio</strong> archive. On the other hand, a DEB  file is a pure <strong>ar</strong> archive. So, it should be possible to  unpack their contents using standard archiving tools, regardless of  your distribution’s package format. Under normal conditions, you should  use your distribution’s standard package manager, <strong>rpm</strong> or <strong>dpkg</strong> and their frontends, to manage those files.  But, if you need to be more generic, here is how to do it.<br />
<span id="more-1172"></span></p>
<h4>RPM</h4>
<p>For RPMs you need two command line utilities, <strong>rpm2cpio</strong> and <strong>cpio</strong>. Extracting the contents of the RPM package  is an <em>one-step</em> process:<br />
<code>rpm2cpio mypackage.rpm | cpio -vid</code><br />
If you just need to list the contents of the package without  extracting them, use the following:<br />
<code>rpm2cpio mypackage.rpm | cpio -vt</code><br />
The <strong>-v</strong> option is used in order to get verbose output  to the stdout. If you don’t need it, you can safely omit this switch.  For more information about the <code>cpio</code> options, please refer  to the <code>cpio(1)</code> manual page.</p>
<h4>DEB</h4>
<p>DEB files are <em>ar archives</em>, which contain three files:</p>
<ul>
<li>debian-binary</li>
<li>control.tar.gz</li>
<li>data.tar.gz</li>
</ul>
<p>As you might have already guessed, the needed archived files exist in  <code>data.tar.gz</code>. It is also obvious that unpacking this file  is a <em>two-step</em> process.</p>
<p>First, extract the aforementioned three files from the DEB file (<strong>ar</strong> archive):<br />
<code>tar vx mypackage.deb</code><br />
Then extract the contents of <code>data.tar.gz</code> using <strong>tar</strong>:<br />
<code>tar -xzvf data.tar.gz</code><br />
Or, if you just need to get a <em>listing</em> of the files:<br />
<code>tar -tzvf data.tar.gz</code><br />
Again the <strong>-v</strong> option in both <strong>ar</strong> and <strong>tar</strong> is used in order to get verbose output. It is safe not to use it. For  more information, read the man pages: <code>tar(1)</code> and <code>ar(1)</code>.</p>
<p><span style="text-decoration: line-through;">If anyone knows an <em>one-step process</em> to extract the  contents of the <code>data.tar.gz</code>, I’d be very interested in it!</span></p>
<p><strong>Update</strong></p>
<p><code>tar p mypackage.deb data.tar.gz | tar zx</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-extract-rpm-or-deb-packages/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->