<?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>HostOnNet.com &#187; apt-get</title>
	<atom:link href="http://blog.hostonnet.com/tag/apt-get/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hostonnet.com</link>
	<description>Windows, Linux, Ubuntu, Web Hosting</description>
	<lastBuildDate>Mon, 07 Jun 2010 08:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to extract RAR files in Ubuntu</title>
		<link>http://blog.hostonnet.com/how-to-extract-rar-files-in-ubuntu</link>
		<comments>http://blog.hostonnet.com/how-to-extract-rar-files-in-ubuntu#comments</comments>
		<pubDate>Thu, 24 Sep 2009 16:50:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[rar]]></category>
		<category><![CDATA[unrar]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=142</guid>
		<description><![CDATA[To extract rar file, you need to install unrar with sudo apt-get install unrar To extract a rar file, go to command line, run unrar x fileName.rar For other command line options of unrar, run man unrar]]></description>
			<content:encoded><![CDATA[<p>To extract rar file, you need to install unrar with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> unrar</pre></div></div>

<p>To extract a rar file, go to command line, run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">unrar x fileName.rar</pre></div></div>

<p>For other command line options of unrar, run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">man</span> unrar</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-extract-rar-files-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install festival tts in ubuntu</title>
		<link>http://blog.hostonnet.com/install-festival-tts-in-ubuntu</link>
		<comments>http://blog.hostonnet.com/install-festival-tts-in-ubuntu#comments</comments>
		<pubDate>Sat, 12 Sep 2009 10:19:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[festival]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Text-to-Speech]]></category>
		<category><![CDATA[tts]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=134</guid>
		<description><![CDATA[festival is a tts (text-to-speech) software in ubuntu that offers several different voices. To install festival, run sudo apt-get install festival Now to use festival, in command line type echo &#34;Host On Net Provides Web Hosting&#34; &#124; festival --tts Or festival --tts file-name.txt]]></description>
			<content:encoded><![CDATA[<p>festival is a tts (text-to-speech) software in ubuntu that offers several different voices.</p>
<p>To install festival, run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> festival</pre></div></div>

<p>Now to use festival, in command line type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Host On Net Provides Web Hosting&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> festival <span style="color: #660033;">--tts</span></pre></div></div>

<p>Or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">festival <span style="color: #660033;">--tts</span> file-name.txt</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/install-festival-tts-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: How to find a package is installed from .deb or source</title>
		<link>http://blog.hostonnet.com/debian-how-to-find-a-package-is-installed-from-deb-or-source</link>
		<comments>http://blog.hostonnet.com/debian-how-to-find-a-package-is-installed-from-deb-or-source#comments</comments>
		<pubDate>Wed, 17 Jun 2009 09:35:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-cache]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=92</guid>
		<description><![CDATA[When installing ffmpeg-php in a debian server, i got error # phpize -bash: phpize: command not found # This is because php-devel package is not installed on the server. Before installing, you need to find out whether php is installed from source or apt-get On CentOS, you can find it by yum list &#124;grep php [...]]]></description>
			<content:encoded><![CDATA[<p>When installing ffmpeg-php in a debian server, i got error</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># phpize</span>
-bash: phpize: <span style="color: #7a0874; font-weight: bold;">command</span> not found
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>This is because php-devel package is not installed on the server.</p>
<p>Before installing, you need to find out whether php is installed from source or apt-get</p>
<p>On CentOS, you can find it by</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum list <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> php</pre></div></div>

<p>On Debian/Ubuntu, dpkg -l list all packages installed.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># dpkg -l *php5*</span>
<span style="color: #007800;">Desired</span>=Unknown<span style="color: #000000; font-weight: bold;">/</span>Install<span style="color: #000000; font-weight: bold;">/</span>Remove<span style="color: #000000; font-weight: bold;">/</span>Purge<span style="color: #000000; font-weight: bold;">/</span>Hold
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #007800;">Status</span>=Not<span style="color: #000000; font-weight: bold;">/</span>Installed<span style="color: #000000; font-weight: bold;">/</span>Config-files<span style="color: #000000; font-weight: bold;">/</span>Unpacked<span style="color: #000000; font-weight: bold;">/</span>Failed-config<span style="color: #000000; font-weight: bold;">/</span>Half-installed
<span style="color: #000000; font-weight: bold;">|/</span> Err?=<span style="color: #7a0874; font-weight: bold;">&#40;</span>none<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>Hold<span style="color: #000000; font-weight: bold;">/</span>Reinst-required<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">X</span>=both-problems <span style="color: #7a0874; font-weight: bold;">&#40;</span>Status,Err: <span style="color: #007800;">uppercase</span>=bad<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">||/</span> Name                      Version                   Description
+++-=========================-=========================-==================================================================
un  libapache-mod-php5        <span style="color: #000000; font-weight: bold;">&lt;</span>none<span style="color: #000000; font-weight: bold;">&gt;</span>                    <span style="color: #7a0874; font-weight: bold;">&#40;</span>no description available<span style="color: #7a0874; font-weight: bold;">&#41;</span>
ii  libapache2-mod-php5       5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       server-side, HTML-embedded scripting language <span style="color: #7a0874; font-weight: bold;">&#40;</span>apache <span style="color: #000000;">2</span> module<span style="color: #7a0874; font-weight: bold;">&#41;</span>
ii  php5                      5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       server-side, HTML-embedded scripting language <span style="color: #7a0874; font-weight: bold;">&#40;</span>meta-package<span style="color: #7a0874; font-weight: bold;">&#41;</span>
un  php5-cgi                  <span style="color: #000000; font-weight: bold;">&lt;</span>none<span style="color: #000000; font-weight: bold;">&gt;</span>                    <span style="color: #7a0874; font-weight: bold;">&#40;</span>no description available<span style="color: #7a0874; font-weight: bold;">&#41;</span>
ii  php5-cli                  5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       command-line interpreter <span style="color: #000000; font-weight: bold;">for</span> the php5 scripting language
ii  php5-common               5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       Common files <span style="color: #000000; font-weight: bold;">for</span> packages built from the php5 <span style="color: #7a0874; font-weight: bold;">source</span>
ii  php5-curl                 5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       CURL module <span style="color: #000000; font-weight: bold;">for</span> php5
ii  php5-gd                   5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       GD module <span style="color: #000000; font-weight: bold;">for</span> php5
ii  php5-imap                 5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       IMAP module <span style="color: #000000; font-weight: bold;">for</span> php5
ii  php5-ioncube-loader       <span style="color: #000000;">3.2</span>-dbn40.build07072610   ionCube Loader <span style="color: #000000; font-weight: bold;">for</span> PHP5
ii  php5-mysql                5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       MySQL module <span style="color: #000000; font-weight: bold;">for</span> php5
un  php5-mysqli               <span style="color: #000000; font-weight: bold;">&lt;</span>none<span style="color: #000000; font-weight: bold;">&gt;</span>                    <span style="color: #7a0874; font-weight: bold;">&#40;</span>no description available<span style="color: #7a0874; font-weight: bold;">&#41;</span>
ii  php5-xsl                  5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15       XSL module <span style="color: #000000; font-weight: bold;">for</span> php5
ii  psa-php5-configurator     1.4.0-debian4.0.build8608 Plesk configurator <span style="color: #000000; font-weight: bold;">for</span> php5
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>You can also use</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-cache</span> policy php5</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-cache policy php5</span>
php5:
  Installed: 5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15
  Candidate: 5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15
  Version table:
 <span style="color: #000000; font-weight: bold;">***</span> 5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15 <span style="color: #000000;">0</span>
        <span style="color: #000000;">500</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.de.debian.org etch<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span>main Packages
        <span style="color: #000000;">100</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>dpkg<span style="color: #000000; font-weight: bold;">/</span>status
     5.2.0-<span style="color: #000000;">8</span>+etch13 <span style="color: #000000;">0</span>
        <span style="color: #000000;">500</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.de.debian.org etch<span style="color: #000000; font-weight: bold;">/</span>main Packages
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>In this server, php is installed from apt. So to install php-devel, i run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-cache</span> search php5 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">more</span></pre></div></div>

<p>This command list all php5 packages available. From the list i found</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">php5-dev - Files <span style="color: #000000; font-weight: bold;">for</span> PHP5 module development</pre></div></div>

<p>To install, run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-dev</pre></div></div>

<p>Here is the result</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get install php5-dev</span>
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  automake1.4 libssl-dev libssl0.9.8 shtool
The following NEW packages will be installed:
  automake1.4 libssl-dev php5-dev shtool
The following packages will be upgraded:
  libssl0.9.8
<span style="color: #000000;">1</span> upgraded, <span style="color: #000000;">4</span> newly installed, <span style="color: #000000;">0</span> to remove and <span style="color: #000000;">57</span> not upgraded.
Need to get 5586kB of archives.
After unpacking 10.2MB of additional disk space will be used.
Do you want to <span style="color: #7a0874; font-weight: bold;">continue</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span>? Y
WARNING: The following packages cannot be authenticated<span style="color: #000000; font-weight: bold;">!</span>
  automake1.4 shtool
Install these packages without verification <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span>? y
Get:<span style="color: #000000;">1</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.de.debian.org etch<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span>main libssl0.9.8 0.9.8c-4etch5 <span style="color: #7a0874; font-weight: bold;">&#91;</span>2721kB<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Get:<span style="color: #000000;">2</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.de.debian.org etch<span style="color: #000000; font-weight: bold;">/</span>main automake1.4 <span style="color: #000000;">1</span>:<span style="color: #000000;">1.4</span>-p6-<span style="color: #000000;">12</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>272kB<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Get:<span style="color: #000000;">3</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.de.debian.org etch<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span>main libssl-dev 0.9.8c-4etch5 <span style="color: #7a0874; font-weight: bold;">&#91;</span>2094kB<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Get:<span style="color: #000000;">4</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.de.debian.org etch<span style="color: #000000; font-weight: bold;">/</span>main shtool 2.0.1-<span style="color: #000000;">2</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>152kB<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Get:<span style="color: #000000;">5</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.de.debian.org etch<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span>main php5-dev 5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15 <span style="color: #7a0874; font-weight: bold;">&#91;</span>346kB<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Fetched 5586kB <span style="color: #000000; font-weight: bold;">in</span> 2s <span style="color: #7a0874; font-weight: bold;">&#40;</span>1908kB<span style="color: #000000; font-weight: bold;">/</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Preconfiguring packages ...
<span style="color: #7a0874; font-weight: bold;">&#40;</span>Reading database ... <span style="color: #000000;">55619</span> files and directories currently installed.<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Preparing to replace libssl0.9.8 0.9.8c-4etch3 <span style="color: #7a0874; font-weight: bold;">&#40;</span>using ...<span style="color: #000000; font-weight: bold;">/</span>libssl0.9.8_0.9.8c-4etch5_i386.deb<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Unpacking replacement libssl0.9.8 ...
Selecting previously deselected package automake1.4.
Unpacking automake1.4 <span style="color: #7a0874; font-weight: bold;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;">/</span>automake1.4_1<span style="color: #000000; font-weight: bold;">%</span>3a1.4-p6-<span style="color: #000000;">12</span>_all.deb<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Selecting previously deselected package libssl-dev.
Unpacking libssl-dev <span style="color: #7a0874; font-weight: bold;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;">/</span>libssl-dev_0.9.8c-4etch5_i386.deb<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Selecting previously deselected package shtool.
Unpacking shtool <span style="color: #7a0874; font-weight: bold;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;">/</span>shtool_2.0.1-<span style="color: #000000;">2</span>_all.deb<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Selecting previously deselected package php5-dev.
Unpacking php5-dev <span style="color: #7a0874; font-weight: bold;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;">/</span>php5-dev_5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15_i386.deb<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Setting up libssl0.9.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.9.8c-4etch5<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
&nbsp;
Setting up automake1.4 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1.4</span>-p6-<span style="color: #000000;">12</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
&nbsp;
Setting up libssl-dev <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.9.8c-4etch5<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Setting up shtool <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.0.1-<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
&nbsp;
Setting up php5-dev <span style="color: #7a0874; font-weight: bold;">&#40;</span>5.2.0+dfsg-<span style="color: #000000;">8</span>+etch15<span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
&nbsp;
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Now phpize is availale</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># which phpize</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>phpize
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/debian-how-to-find-a-package-is-installed-from-deb-or-source/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
