<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Linux-Noob Forums - Package Management]]></title>
		<link>https://www.linux-noob.com/forums/</link>
		<description><![CDATA[Linux-Noob Forums - https://www.linux-noob.com/forums]]></description>
		<pubDate>Thu, 30 Apr 2026 19:04:41 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[List and extract RPM files.]]></title>
			<link>https://www.linux-noob.com/forums/thread-426.html</link>
			<pubDate>Sun, 05 Sep 2010 19:58:36 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3268">Bakshara</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-426.html</guid>
			<description><![CDATA[<br />
I did a lot of looking on-line and that was not helpful at all. I hope someone can explain how I can either extract all files from an RPM or only extract certain files from an RPM?<br />
<br />
 <br />
<br />
This is without installing the RPM file.<br />
<br />
 <br />
<br />
Thanks in advance,<br />
<br />
 <br />
<br />
Bakshara<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I did a lot of looking on-line and that was not helpful at all. I hope someone can explain how I can either extract all files from an RPM or only extract certain files from an RPM?<br />
<br />
 <br />
<br />
This is without installing the RPM file.<br />
<br />
 <br />
<br />
Thanks in advance,<br />
<br />
 <br />
<br />
Bakshara<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Software Install with YUM]]></title>
			<link>https://www.linux-noob.com/forums/thread-796.html</link>
			<pubDate>Sun, 26 Oct 2008 22:35:13 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3048">Dungeon-Dave</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-796.html</guid>
			<description><![CDATA[<br />
<span style="font-size: 8pt;" class="mycode_size">1. Overview</span><br />
<br />
 <br />
<br />
YUM extends RPM functionality by downloading and installing packages directly from online repositories. As well as all the advantages of RPM, YUM provides a few more handy features:<br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">version compatibility</span>: YUM will automatically locate the latest package version on that repo suited to your kernel<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">pre-requisites satisfied</span>: any dependencies are automatically downloaded and installed first - solving that bugbear of "RPM dependency hell"<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">supports local installation</span>: YUM can attempt to install a locally-held RPM package, satisfying pre-requisites online if necessary.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">package updates</span>: YUM can be instructed to update all installed software with only a few simple commands - or even scheduled to perform this automatically at regular intervals<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">repo index caching</span>: YUM caches an index of repo packages, which can be interrogated to determine repo contents without going online - this can be used to search for packages, or determine what packages provide a required command - or even what are the dependencies for a specific package.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">repo reports</span>: YUM can report what repos are in effect, which is a bit clearer than trawling through directories of config files.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">cache management</span>: YUM downloads RPM packages into a cache area prior to installing; a few options to YUM can flush this cache to tidy up after itself<br />
<br />
<br />
</li>
</ul>
<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">2. Basic Commands</span><br />
<br />
 <br />
<br />
1. Installing a package: <span style="font-weight: bold;" class="mycode_b">yum install </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename(s)</span></span>, for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum install cacti<br />
Loaded plugins: refresh-packagekit<br />
Setting up Install Process<br />
Parsing package install arguments<br />
Resolving Dependencies<br />
--&gt; Running transaction check<br />
---&gt; Package cacti.noarch 0:0.8.7b-4.fc10 set to be updated<br />
--&gt; Processing Dependency: rrdtool for package: cacti<br />
--&gt; Processing Dependency: php-snmp for package: cacti<br />
--&gt; Processing Dependency: mysql for package: cacti<br />
--&gt; Running transaction check<br />
---&gt; Package rrdtool.i386 0:1.3.4-2.fc10 set to be updated<br />
--&gt; Processing Dependency: dejavu-lgc-fonts for package: rrdtool<br />
---&gt; Package mysql.i386 0:5.0.67-2.fc10 set to be updated<br />
--&gt; Processing Dependency: perl(DBI) for package: mysql<br />
---&gt; Package php-snmp.i386 0:5.2.6-5 set to be updated<br />
--&gt; Running transaction check<br />
---&gt; Package perl-DBI.i386 0:1.607-1.fc10 set to be updated<br />
---&gt; Package dejavu-lgc-fonts.noarch 0:2.26-2.fc10 set to be updated<br />
--&gt; Finished Dependency Resolution<br />
<br />
Dependencies Resolved<br />
<br />
================================================================================<br />
Package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repository&nbsp;&nbsp;&nbsp;&nbsp; Size<br />
================================================================================<br />
Installing:<br />
cacti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.8.7b-4.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.9 M<br />
Installing for dependencies:<br />
dejavu-lgc-fonts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.26-2.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.5 M<br />
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.0.67-2.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.1 M<br />
perl-DBI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.607-1.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;776 k<br />
php-snmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.2.6-5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 24 k<br />
rrdtool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.3.4-2.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;391 k<br />
<br />
Transaction Summary<br />
================================================================================<br />
Install&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6 Package(s)<br />
Update&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br />
Remove&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br />
<br />
Total download size: 9.7 M<br />
Is this ok [y/N]:</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
From here, just a simple answer of "Y" will begin downloading these six packages then install them automatically.<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">Tip: use the "-y" option on yum to answer "yes" to everything.</span><br />
<br />
 <br />
<br />
2. Using yum to install a locally-stored RPM file: <span style="font-weight: bold;" class="mycode_b">yum localinstall </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">rpm-package-file</span></span>, for instance:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum localinstall wine-2.3.4.5</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
3. Updating a package: <span style="font-weight: bold;" class="mycode_b">yum update </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span>, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum update sudo<br />
Loaded plugins: refresh-packagekit<br />
Setting up Update Process<br />
Resolving Dependencies<br />
--&gt; Running transaction check<br />
---&gt; Package sudo.i386 0:1.6.9p17-4.fc10 set to be updated<br />
--&gt; Finished Dependency Resolution<br />
<br />
Dependencies Resolved<br />
<br />
=============================================================================<br />
Package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repository&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size<br />
=============================================================================<br />
Updating:<br />
sudo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.6.9p17-4.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;225 k<br />
<br />
Transaction Summary<br />
=============================================================================<br />
Install&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 Package(s)<br />
Update&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 Package(s)<br />
Remove&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br />
Total download size: 225 k<br />
Is this ok [y/N]:</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">Tip: unlike the </span><span style="font-style: italic;" class="mycode_i"><span style="font-weight: bold;" class="mycode_b">-U</span></span><span style="font-style: italic;" class="mycode_i"> option to RPM, </span><span style="font-style: italic;" class="mycode_i"><span style="font-weight: bold;" class="mycode_b">yum update</span></span><span style="font-style: italic;" class="mycode_i"> will not update uninstalled packages. However, </span><span style="font-style: italic;" class="mycode_i"><span style="font-weight: bold;" class="mycode_b">yum install</span></span><span style="font-style: italic;" class="mycode_i"> will attempt to install a new package, or upgrade an already-installed one - use that option first!</span><br />
<br />
 <br />
<br />
4. Listing packages held on a repo: <span style="font-weight: bold;" class="mycode_b">yum list </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">searchterm</span></span> will use that term as a filter, for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; yum list yum<br />
Loaded plugins: priorities<br />
Excluding Packages in global exclude list<br />
Finished<br />
Installed Packages<br />
yum.noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.2.19-3.fc8&nbsp;&nbsp;&nbsp;&nbsp; installed<br />
Available Packages<br />
yum.noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.2.20-5.fc8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updates-newkey</code></div></div><br />
<br />
<br />
<br />
Although yum version 3.2.19-3 is currently installed, a newer version (3.2.20-5) is available for updating.<br />
<br />
 <br />
<br />
5. Searching repos for packages: <span style="font-weight: bold;" class="mycode_b">yum search </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">package-to-search</span></span> will look for packages matching that search term, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum search sql<br />
Loaded plugins: priorities<br />
Excluding Packages in global exclude list<br />
Finished<br />
=================== Matched: sql ===========================<br />
dovecot.i386 : Dovecot Secure imap server<br />
dovecot-mysql.i386 : MySQL backend for dovecot<br />
dovecot-pgsql.i386 : Postgres SQL backend for dovecot<br />
dovecot-sqlite.i386 : SQLite backend for dovecot<br />
hsqldb.i386 : Hsqldb Database Engine<br />
hsqldb-demo.i386 : Demo for hsqldb<br />
hsqldb-javadoc.i386 : Javadoc for hsqldb<br />
hsqldb-manual.i386 : Manual for hsqldb<br />
koffice-kexi-driver-mysql.i386 : Mysql-driver for kexi<br />
koffice-kexi-driver-pgsql.i386 : Postresql driver for kexi<br />
libgda-mysql.i386 : MySQL provider for libgda<br />
libgda-postgres.i386 : PostgreSQL provider for libgda<br />
libgda-sqlite.i386 : SQLite provider for libgda</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
6. Showing a package's dependencies: <span style="font-weight: bold;" class="mycode_b">yum deplist </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> will determine what pre-requisites are required to install that package, i.e. if I want to yum-install a package, what others will yum download and install first?<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum deplist cacti<br />
Loaded plugins: refresh-packagekit<br />
Finding dependencies:<br />
package: cacti.noarch 0.8.7b-4.fc10<br />
 dependency: net-snmp<br />
&nbsp;&nbsp;provider: net-snmp.i386 1:5.4.2-3.fc10<br />
&nbsp;&nbsp;provider: net-snmp.i386 1:5.4.2.1-2.fc10<br />
 dependency: php-snmp<br />
&nbsp;&nbsp;provider: php-snmp.i386 5.2.6-5<br />
 dependency: /sbin/service<br />
&nbsp;&nbsp;provider: initscripts.i386 8.86-1<br />
 dependency: mysql<br />
&nbsp;&nbsp;provider: mysql.i386 5.0.67-2.fc10</code></div></div><br />
<br />
<br />
<br />
In this case, installing cacti requires net-snmp, php-snmp and mysql (amongst other packages), as well as the "service" executable, which is provided by installing the initscripts package.<br />
<br />
 <br />
<br />
7. Finding which package provides a particular command or file: <span style="font-weight: bold;" class="mycode_b">yum provides </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">filename</span></span> - this is similar to the "search" option mentioned earlier, except it looks for the actual files within the package rather than search against package names themselves, for instance:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum provides "*lokkit"<br />
Loaded plugins: refresh-packagekit<br />
setuptool-1.19.4-2.fc9.i386 : A text mode system configuration tool<br />
Repo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: fedora<br />
Matched from:<br />
Filename&nbsp;&nbsp;&nbsp;&nbsp;: /etc/setuptool.d/99lokkit<br />
<br />
system-config-firewall-tui-1.2.13-2.fc10.noarch : A text interface for basic<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : firewall setup<br />
Repo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: fedora<br />
Matched from:<br />
Filename&nbsp;&nbsp;&nbsp;&nbsp;: /usr/sbin/lokkit<br />
Other&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : lokkit = 1.7.0</code></div></div><br />
<br />
<br />
<br />
In this case, two packages contain files matching the "lokkit" name - I can pick which package I require, depending upon which file/command I need.<br />
<br />
 <br />
<br />
8. Uninstalling package: <span style="font-weight: bold;" class="mycode_b">yum erase </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> will attempt to erase a package, showing which other files (dependencies on this package) need to also be removed to prevent orphaned packages.<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum erase httpd<br />
Loaded plugins: fastestmirror, priorities<br />
Setting up Remove Process<br />
Resolving Dependencies<br />
--&gt; Running transaction check<br />
---&gt; Package httpd.i386 0:2.2.3-31.el5.centos set to be erased<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: mod_ssl<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: mod_perl<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: mod_python<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: php<br />
--&gt; Processing Dependency: webserver for package: webalizer<br />
--&gt; Processing Dependency: httpd = 2.2.3-31.el5.centos for package: mod_ssl<br />
--&gt; Processing Dependency: httpd for package: system-config-httpd<br />
--&gt; Processing Dependency: httpd = 2.2.3-31.el5.centos for package: httpd-manual<br />
--&gt; Processing Dependency: httpd &gt;= 2.0.40 for package: mod_python<br />
--&gt; Processing Dependency: httpd for package: squirrelmail<br />
--&gt; Processing Dependency: httpd for package: squirrelmail<br />
--&gt; Running transaction check<br />
---&gt; Package httpd-manual.i386 0:2.2.3-31.el5.centos set to be erased<br />
---&gt; Package mod_perl.i386 0:2.0.4-6.el5 set to be erased<br />
---&gt; Package mod_python.i386 0:3.2.8-3.1 set to be erased<br />
...</code></div></div><br />
<br />
<br />
<br />
In this case, Apache modules that depend on HTTPD installed will also be removed when attempting to remove Apache web server.<br />
<br />
 <br />
<br />
For more information, use <span style="font-weight: bold;" class="mycode_b">man yum</span>.<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">3. YUM File Locations</span><br />
<br />
1. Config Files:<br />
<br />
 <br />
<br />
There are several config files for YUM, the main one being <span style="font-weight: bold;" class="mycode_b">/etc/yum.conf</span> which used to contain not only directives affecting YUM's behaviour, but addresses directing YUM to FTP servers.<br />
<br />
 <br />
<br />
The latter are now located in a <span style="font-weight: bold;" class="mycode_b">/etc/yum/repos.d/</span> directory, one .repo file per FTP site. On a default install there will probably be the official RedHat repos provided - you may need to manually add additional repos in order to access a wider range of software.<br />
<br />
 <br />
<br />
To get a quick report on what repos are configured, use <span style="font-weight: bold;" class="mycode_b">yum repolist all</span>:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum repolist all<br />
Loaded plugins: refresh-packagekit<br />
repo id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repo name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;status<br />
adobe-linux-i386&nbsp;&nbsp;&nbsp;&nbsp; Adobe Systems Incorporated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled:&nbsp;&nbsp;&nbsp;&nbsp; 17<br />
fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fedora 10 - i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: 11,416<br />
fedora-debuginfo&nbsp;&nbsp;&nbsp;&nbsp; Fedora 10 - i386 - Debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
fedora-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
fusion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Compiz Fusion repository&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled:&nbsp;&nbsp;&nbsp;&nbsp; 48<br />
fusion-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiz Fusion repository - source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
fusion-testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Compiz Fusion repository -testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
rawhide&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora - Rawhide - Developmental packa disabled<br />
rawhide-debuginfo&nbsp;&nbsp;&nbsp;&nbsp;Fedora - Rawhide - Debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
rawhide-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fedora - Rawhide - Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - i386 - Updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled:&nbsp;&nbsp;3,104<br />
updates-debuginfo&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - i386 - Updates - Debug&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
updates-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fedora 10 - Updates Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
updates-testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - i386 - Test Updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
repolist: 14,585</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Use <span style="font-weight: bold;" class="mycode_b">yum repolist enabled</span> (or just <span style="font-weight: bold;" class="mycode_b">yum repolist</span>) to show only those in effect (enabled).<br />
<br />
 <br />
<br />
2. Cache Directories:<br />
<br />
 <br />
<br />
YUM usually downloads RPM files somewhere under the <span style="font-weight: bold;" class="mycode_b">/var/cache/yum/</span> directory containing cache subdirectories per repo, holding RPM files and repo metadata. Usually you won't need to worry about this area - but if something goes wrong mid-yum it can be worthwhile dropping into those directories and manually (using <span style="font-weight: bold;" class="mycode_b">rpm</span>) installing some of the packages that have been downloaded, rather than re-download the entire lot again.<br />
<br />
 <br />
<br />
To clean out any cached files, use <span style="font-weight: bold;" class="mycode_b">yum clean packages</span><br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">3. Other Considerations</span><br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">outdated header files</span>: since YUM caches repo headers locally, these files could contain incorrect information. Use <span style="font-weight: bold;" class="mycode_b">yum clean headers</span> to flush this information out first.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">flushing caches</span>: if yum STILL seems to be ignoring config files and insists on using older information, use <span style="font-weight: bold;" class="mycode_b">yum clean all</span> to purge yum of cached packages, headers etc - then try again.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">automatic package updates</span>: the <span style="font-weight: bold;" class="mycode_b">yum-updatesd</span> service (yum-updates-daemon) can keep packages automatically updated - checking, downloading and installing without any manual intervention, rather like Windows Updates. However, some problems may be encountered on production servers with unchecked newer software being upgraded without any testing or evaluation, breaking an already-running system (dovecot - I'm looking at YOU!). For that reason, many admins prefer to set their updates to "notify" rather than automatically upgrade: check the <span style="font-weight: bold;" class="mycode_b">/etc/yum/yum-updatesd.conf</span> file for details on modifying yum-updatesd behaviour<br />
<br />
<br />
</li>
</ul>
<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
<span style="font-size: 8pt;" class="mycode_size">1. Overview</span><br />
<br />
 <br />
<br />
YUM extends RPM functionality by downloading and installing packages directly from online repositories. As well as all the advantages of RPM, YUM provides a few more handy features:<br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">version compatibility</span>: YUM will automatically locate the latest package version on that repo suited to your kernel<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">pre-requisites satisfied</span>: any dependencies are automatically downloaded and installed first - solving that bugbear of "RPM dependency hell"<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">supports local installation</span>: YUM can attempt to install a locally-held RPM package, satisfying pre-requisites online if necessary.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">package updates</span>: YUM can be instructed to update all installed software with only a few simple commands - or even scheduled to perform this automatically at regular intervals<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">repo index caching</span>: YUM caches an index of repo packages, which can be interrogated to determine repo contents without going online - this can be used to search for packages, or determine what packages provide a required command - or even what are the dependencies for a specific package.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">repo reports</span>: YUM can report what repos are in effect, which is a bit clearer than trawling through directories of config files.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">cache management</span>: YUM downloads RPM packages into a cache area prior to installing; a few options to YUM can flush this cache to tidy up after itself<br />
<br />
<br />
</li>
</ul>
<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">2. Basic Commands</span><br />
<br />
 <br />
<br />
1. Installing a package: <span style="font-weight: bold;" class="mycode_b">yum install </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename(s)</span></span>, for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum install cacti<br />
Loaded plugins: refresh-packagekit<br />
Setting up Install Process<br />
Parsing package install arguments<br />
Resolving Dependencies<br />
--&gt; Running transaction check<br />
---&gt; Package cacti.noarch 0:0.8.7b-4.fc10 set to be updated<br />
--&gt; Processing Dependency: rrdtool for package: cacti<br />
--&gt; Processing Dependency: php-snmp for package: cacti<br />
--&gt; Processing Dependency: mysql for package: cacti<br />
--&gt; Running transaction check<br />
---&gt; Package rrdtool.i386 0:1.3.4-2.fc10 set to be updated<br />
--&gt; Processing Dependency: dejavu-lgc-fonts for package: rrdtool<br />
---&gt; Package mysql.i386 0:5.0.67-2.fc10 set to be updated<br />
--&gt; Processing Dependency: perl(DBI) for package: mysql<br />
---&gt; Package php-snmp.i386 0:5.2.6-5 set to be updated<br />
--&gt; Running transaction check<br />
---&gt; Package perl-DBI.i386 0:1.607-1.fc10 set to be updated<br />
---&gt; Package dejavu-lgc-fonts.noarch 0:2.26-2.fc10 set to be updated<br />
--&gt; Finished Dependency Resolution<br />
<br />
Dependencies Resolved<br />
<br />
================================================================================<br />
Package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repository&nbsp;&nbsp;&nbsp;&nbsp; Size<br />
================================================================================<br />
Installing:<br />
cacti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.8.7b-4.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.9 M<br />
Installing for dependencies:<br />
dejavu-lgc-fonts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.26-2.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.5 M<br />
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.0.67-2.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.1 M<br />
perl-DBI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.607-1.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;776 k<br />
php-snmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.2.6-5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 24 k<br />
rrdtool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.3.4-2.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;391 k<br />
<br />
Transaction Summary<br />
================================================================================<br />
Install&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6 Package(s)<br />
Update&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br />
Remove&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br />
<br />
Total download size: 9.7 M<br />
Is this ok [y/N]:</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
From here, just a simple answer of "Y" will begin downloading these six packages then install them automatically.<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">Tip: use the "-y" option on yum to answer "yes" to everything.</span><br />
<br />
 <br />
<br />
2. Using yum to install a locally-stored RPM file: <span style="font-weight: bold;" class="mycode_b">yum localinstall </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">rpm-package-file</span></span>, for instance:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum localinstall wine-2.3.4.5</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
3. Updating a package: <span style="font-weight: bold;" class="mycode_b">yum update </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span>, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum update sudo<br />
Loaded plugins: refresh-packagekit<br />
Setting up Update Process<br />
Resolving Dependencies<br />
--&gt; Running transaction check<br />
---&gt; Package sudo.i386 0:1.6.9p17-4.fc10 set to be updated<br />
--&gt; Finished Dependency Resolution<br />
<br />
Dependencies Resolved<br />
<br />
=============================================================================<br />
Package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repository&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size<br />
=============================================================================<br />
Updating:<br />
sudo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.6.9p17-4.fc10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;225 k<br />
<br />
Transaction Summary<br />
=============================================================================<br />
Install&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 Package(s)<br />
Update&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 Package(s)<br />
Remove&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br />
Total download size: 225 k<br />
Is this ok [y/N]:</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">Tip: unlike the </span><span style="font-style: italic;" class="mycode_i"><span style="font-weight: bold;" class="mycode_b">-U</span></span><span style="font-style: italic;" class="mycode_i"> option to RPM, </span><span style="font-style: italic;" class="mycode_i"><span style="font-weight: bold;" class="mycode_b">yum update</span></span><span style="font-style: italic;" class="mycode_i"> will not update uninstalled packages. However, </span><span style="font-style: italic;" class="mycode_i"><span style="font-weight: bold;" class="mycode_b">yum install</span></span><span style="font-style: italic;" class="mycode_i"> will attempt to install a new package, or upgrade an already-installed one - use that option first!</span><br />
<br />
 <br />
<br />
4. Listing packages held on a repo: <span style="font-weight: bold;" class="mycode_b">yum list </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">searchterm</span></span> will use that term as a filter, for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; yum list yum<br />
Loaded plugins: priorities<br />
Excluding Packages in global exclude list<br />
Finished<br />
Installed Packages<br />
yum.noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.2.19-3.fc8&nbsp;&nbsp;&nbsp;&nbsp; installed<br />
Available Packages<br />
yum.noarch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.2.20-5.fc8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updates-newkey</code></div></div><br />
<br />
<br />
<br />
Although yum version 3.2.19-3 is currently installed, a newer version (3.2.20-5) is available for updating.<br />
<br />
 <br />
<br />
5. Searching repos for packages: <span style="font-weight: bold;" class="mycode_b">yum search </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">package-to-search</span></span> will look for packages matching that search term, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum search sql<br />
Loaded plugins: priorities<br />
Excluding Packages in global exclude list<br />
Finished<br />
=================== Matched: sql ===========================<br />
dovecot.i386 : Dovecot Secure imap server<br />
dovecot-mysql.i386 : MySQL backend for dovecot<br />
dovecot-pgsql.i386 : Postgres SQL backend for dovecot<br />
dovecot-sqlite.i386 : SQLite backend for dovecot<br />
hsqldb.i386 : Hsqldb Database Engine<br />
hsqldb-demo.i386 : Demo for hsqldb<br />
hsqldb-javadoc.i386 : Javadoc for hsqldb<br />
hsqldb-manual.i386 : Manual for hsqldb<br />
koffice-kexi-driver-mysql.i386 : Mysql-driver for kexi<br />
koffice-kexi-driver-pgsql.i386 : Postresql driver for kexi<br />
libgda-mysql.i386 : MySQL provider for libgda<br />
libgda-postgres.i386 : PostgreSQL provider for libgda<br />
libgda-sqlite.i386 : SQLite provider for libgda</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
6. Showing a package's dependencies: <span style="font-weight: bold;" class="mycode_b">yum deplist </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> will determine what pre-requisites are required to install that package, i.e. if I want to yum-install a package, what others will yum download and install first?<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum deplist cacti<br />
Loaded plugins: refresh-packagekit<br />
Finding dependencies:<br />
package: cacti.noarch 0.8.7b-4.fc10<br />
 dependency: net-snmp<br />
&nbsp;&nbsp;provider: net-snmp.i386 1:5.4.2-3.fc10<br />
&nbsp;&nbsp;provider: net-snmp.i386 1:5.4.2.1-2.fc10<br />
 dependency: php-snmp<br />
&nbsp;&nbsp;provider: php-snmp.i386 5.2.6-5<br />
 dependency: /sbin/service<br />
&nbsp;&nbsp;provider: initscripts.i386 8.86-1<br />
 dependency: mysql<br />
&nbsp;&nbsp;provider: mysql.i386 5.0.67-2.fc10</code></div></div><br />
<br />
<br />
<br />
In this case, installing cacti requires net-snmp, php-snmp and mysql (amongst other packages), as well as the "service" executable, which is provided by installing the initscripts package.<br />
<br />
 <br />
<br />
7. Finding which package provides a particular command or file: <span style="font-weight: bold;" class="mycode_b">yum provides </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">filename</span></span> - this is similar to the "search" option mentioned earlier, except it looks for the actual files within the package rather than search against package names themselves, for instance:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum provides "*lokkit"<br />
Loaded plugins: refresh-packagekit<br />
setuptool-1.19.4-2.fc9.i386 : A text mode system configuration tool<br />
Repo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: fedora<br />
Matched from:<br />
Filename&nbsp;&nbsp;&nbsp;&nbsp;: /etc/setuptool.d/99lokkit<br />
<br />
system-config-firewall-tui-1.2.13-2.fc10.noarch : A text interface for basic<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : firewall setup<br />
Repo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: fedora<br />
Matched from:<br />
Filename&nbsp;&nbsp;&nbsp;&nbsp;: /usr/sbin/lokkit<br />
Other&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : lokkit = 1.7.0</code></div></div><br />
<br />
<br />
<br />
In this case, two packages contain files matching the "lokkit" name - I can pick which package I require, depending upon which file/command I need.<br />
<br />
 <br />
<br />
8. Uninstalling package: <span style="font-weight: bold;" class="mycode_b">yum erase </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> will attempt to erase a package, showing which other files (dependencies on this package) need to also be removed to prevent orphaned packages.<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum erase httpd<br />
Loaded plugins: fastestmirror, priorities<br />
Setting up Remove Process<br />
Resolving Dependencies<br />
--&gt; Running transaction check<br />
---&gt; Package httpd.i386 0:2.2.3-31.el5.centos set to be erased<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: mod_ssl<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: mod_perl<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: mod_python<br />
--&gt; Processing Dependency: httpd-mmn = 20051115 for package: php<br />
--&gt; Processing Dependency: webserver for package: webalizer<br />
--&gt; Processing Dependency: httpd = 2.2.3-31.el5.centos for package: mod_ssl<br />
--&gt; Processing Dependency: httpd for package: system-config-httpd<br />
--&gt; Processing Dependency: httpd = 2.2.3-31.el5.centos for package: httpd-manual<br />
--&gt; Processing Dependency: httpd &gt;= 2.0.40 for package: mod_python<br />
--&gt; Processing Dependency: httpd for package: squirrelmail<br />
--&gt; Processing Dependency: httpd for package: squirrelmail<br />
--&gt; Running transaction check<br />
---&gt; Package httpd-manual.i386 0:2.2.3-31.el5.centos set to be erased<br />
---&gt; Package mod_perl.i386 0:2.0.4-6.el5 set to be erased<br />
---&gt; Package mod_python.i386 0:3.2.8-3.1 set to be erased<br />
...</code></div></div><br />
<br />
<br />
<br />
In this case, Apache modules that depend on HTTPD installed will also be removed when attempting to remove Apache web server.<br />
<br />
 <br />
<br />
For more information, use <span style="font-weight: bold;" class="mycode_b">man yum</span>.<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">3. YUM File Locations</span><br />
<br />
1. Config Files:<br />
<br />
 <br />
<br />
There are several config files for YUM, the main one being <span style="font-weight: bold;" class="mycode_b">/etc/yum.conf</span> which used to contain not only directives affecting YUM's behaviour, but addresses directing YUM to FTP servers.<br />
<br />
 <br />
<br />
The latter are now located in a <span style="font-weight: bold;" class="mycode_b">/etc/yum/repos.d/</span> directory, one .repo file per FTP site. On a default install there will probably be the official RedHat repos provided - you may need to manually add additional repos in order to access a wider range of software.<br />
<br />
 <br />
<br />
To get a quick report on what repos are configured, use <span style="font-weight: bold;" class="mycode_b">yum repolist all</span>:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># yum repolist all<br />
Loaded plugins: refresh-packagekit<br />
repo id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repo name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;status<br />
adobe-linux-i386&nbsp;&nbsp;&nbsp;&nbsp; Adobe Systems Incorporated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled:&nbsp;&nbsp;&nbsp;&nbsp; 17<br />
fedora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fedora 10 - i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: 11,416<br />
fedora-debuginfo&nbsp;&nbsp;&nbsp;&nbsp; Fedora 10 - i386 - Debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
fedora-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
fusion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Compiz Fusion repository&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled:&nbsp;&nbsp;&nbsp;&nbsp; 48<br />
fusion-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiz Fusion repository - source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
fusion-testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Compiz Fusion repository -testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
rawhide&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora - Rawhide - Developmental packa disabled<br />
rawhide-debuginfo&nbsp;&nbsp;&nbsp;&nbsp;Fedora - Rawhide - Debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
rawhide-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fedora - Rawhide - Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - i386 - Updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled:&nbsp;&nbsp;3,104<br />
updates-debuginfo&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - i386 - Updates - Debug&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
updates-source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fedora 10 - Updates Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled<br />
updates-testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora 10 - i386 - Test Updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disabled<br />
repolist: 14,585</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Use <span style="font-weight: bold;" class="mycode_b">yum repolist enabled</span> (or just <span style="font-weight: bold;" class="mycode_b">yum repolist</span>) to show only those in effect (enabled).<br />
<br />
 <br />
<br />
2. Cache Directories:<br />
<br />
 <br />
<br />
YUM usually downloads RPM files somewhere under the <span style="font-weight: bold;" class="mycode_b">/var/cache/yum/</span> directory containing cache subdirectories per repo, holding RPM files and repo metadata. Usually you won't need to worry about this area - but if something goes wrong mid-yum it can be worthwhile dropping into those directories and manually (using <span style="font-weight: bold;" class="mycode_b">rpm</span>) installing some of the packages that have been downloaded, rather than re-download the entire lot again.<br />
<br />
 <br />
<br />
To clean out any cached files, use <span style="font-weight: bold;" class="mycode_b">yum clean packages</span><br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">3. Other Considerations</span><br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">outdated header files</span>: since YUM caches repo headers locally, these files could contain incorrect information. Use <span style="font-weight: bold;" class="mycode_b">yum clean headers</span> to flush this information out first.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">flushing caches</span>: if yum STILL seems to be ignoring config files and insists on using older information, use <span style="font-weight: bold;" class="mycode_b">yum clean all</span> to purge yum of cached packages, headers etc - then try again.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">automatic package updates</span>: the <span style="font-weight: bold;" class="mycode_b">yum-updatesd</span> service (yum-updates-daemon) can keep packages automatically updated - checking, downloading and installing without any manual intervention, rather like Windows Updates. However, some problems may be encountered on production servers with unchecked newer software being upgraded without any testing or evaluation, breaking an already-running system (dovecot - I'm looking at YOU!). For that reason, many admins prefer to set their updates to "notify" rather than automatically upgrade: check the <span style="font-weight: bold;" class="mycode_b">/etc/yum/yum-updatesd.conf</span> file for details on modifying yum-updatesd behaviour<br />
<br />
<br />
</li>
</ul>
<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Software Install with RPM]]></title>
			<link>https://www.linux-noob.com/forums/thread-797.html</link>
			<pubDate>Sun, 26 Oct 2008 16:17:29 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3048">Dungeon-Dave</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-797.html</guid>
			<description><![CDATA[<br />
(based upon posts originally written by anyweb, kZo, Oroshi, grep420)<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">1. Overview</span><br />
<br />
 <br />
<br />
RedHat invented the RedHat Package Management system to ease installation and maintanence of software.  Although you can still download raw source code and manually compile applications yourself, using a package management system like RPM provides a number of advantage:<br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">no compiling</span>: someone else has already done all the hard work of compiling, which saves you the hassle of getting a compiler and various libraries (Shared Objects)<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">package pre-requisites</span>: the RPM package contains information about dependencies, so won't install if the pre-requisite files are missing or too old<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">package configuration</span>: the RPM package usually contains some default/example config files - helps setting up the package from new<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">installation locations</span>: paths in the RPM package conform to the standard Linux filesystem hierarchy (/usr/bin for binaries, /etc for config files, /var/log for logfiles, etc)<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">the RPM database</span>: details of RPM-installed software are stored in an RPM database that can be interrogated to list all installed software, what files the package contains, etc.<br />
<br />
<br />
</li>
</ul>
<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">2. Basic Commands</span><br />
<br />
 <br />
<br />
1. Listing installed packages: <span style="font-weight: bold;" class="mycode_b">rpm -qa</span>, for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -qa | more<br />
basesystem-8.0-5<br />
ethtool-3-1<br />
mktemp-1.5-23<br />
perl-Filter-1.30-7<br />
tcl-8.4.9-3<br />
ed-0.2-38<br />
MAKEDEV-3.19-1<br />
pyxf86config-0.3.19-4<br />
...</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
2. Showing information about a package: <span style="font-weight: bold;" class="mycode_b">rpm -qi </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> (note that the package name, and not version needed to be specified), for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -qi ethtool<br />
Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ethtool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Relocations: (not relocatable)<br />
Version&nbsp;&nbsp;: 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vendor: Red Hat, Inc.<br />
Release&nbsp;&nbsp;: 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Build Date: Thu 03 Mar 2005 11:08:26 PM GMT<br />
Install Date: Wed 19 May 2004 01:16:31 AM BST&nbsp;&nbsp;&nbsp;&nbsp; Build Host: tweety.build.redhat.com<br />
Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: Applications/System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Source RPM: ethtool-3-1.src.rpm<br />
Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 134623&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; License: GPL<br />
Signature&nbsp;&nbsp; : DSA/SHA1, Fri 20 May 2005 08:35:08 PM BST, Key ID b44269d04f2a6fd2<br />
Packager&nbsp;&nbsp;&nbsp;&nbsp;: Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;<br />
URL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: http://sourceforge.net/projects/gkernel/<br />
Summary&nbsp;&nbsp;: Ethernet settings tool for PCI ethernet cards<br />
Description :<br />
This utility allows querying and changing of ethernet card settings,<br />
such as speed, port, auto-negotiation, and PCI locations.</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
3. Listing package contents: <span style="font-weight: bold;" class="mycode_b">rpm -ql </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> (again, only name and not version number needs to be given), for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -ql bzip2<br />
/usr/bin/bunzip2<br />
/usr/bin/bzcat<br />
/usr/bin/bzcmp<br />
/usr/bin/bzdiff<br />
/usr/bin/bzgrep<br />
/usr/bin/bzip2<br />
/usr/bin/bzip2recover<br />
/usr/bin/bzless<br />
/usr/bin/bzmore</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
4. Listing which package a file belongs to: <span style="font-weight: bold;" class="mycode_b">rpm -qf </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/file</span></span> - in this case, the absolute path to a filename must be specified. I have used the <span style="font-weight: bold;" class="mycode_b">which</span> command to determine the path in this case:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; which nmap<br />
/usr/bin/nmap<br />
&#36; rpm -qf /usr/bin/nmap<br />
nmap-4.53-1.0.cf.fc4</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
5. Listing contents of an uninstalled package: <span style="font-weight: bold;" class="mycode_b">rpm -qlp </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/thisPackageHere.rpm</span></span> - to see the contents of a package not yet installed, use the <span style="font-weight: bold;" class="mycode_b">qlp</span> options on the RPM file itself, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -qlp openssl096b-0.9.6b-6.i386.rpm<br />
/lib/libcrypto.so.0.9.6b<br />
/lib/libssl.so.0.9.6b<br />
/usr/share/doc/openssl096b-0.9.6b<br />
/usr/share/doc/openssl096b-0.9.6b/CHANGES<br />
/usr/share/doc/openssl096b-0.9.6b/FAQ</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
6. Installing a package: <span style="font-weight: bold;" class="mycode_b">rpm -ivh </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/thisPackage.rpm</span></span>. <span style="font-weight: bold;" class="mycode_b">i</span>=install, <span style="font-weight: bold;" class="mycode_b">v</span>=verbose, <span style="font-weight: bold;" class="mycode_b">h</span>=hash signs to show progress, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># rpm -ivh Bastille-3.0.9-1.0.noarch.rpm<br />
Preparing...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;########################################### [100%]<br />
&nbsp;&nbsp;1:Bastille&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ########################################### [100%]<br />
#</code></div></div><br />
<br />
<br />
<br />
Note that root privileges or equivilent (such as <span style="font-weight: bold;" class="mycode_b">sudo</span>) are needed to install RPM packages.<br />
<br />
 <br />
<br />
7. Upgrading a package: similar to above but uses the <span style="font-weight: bold;" class="mycode_b">-U</span> option rather than <span style="font-weight: bold;" class="mycode_b">-i</span>, i.e.: <span style="font-weight: bold;" class="mycode_b">rpm -Uvh </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/thisPackage.rpm</span></span>. <br />
<br />
 <br />
<br />
8. Checking packages: <span style="font-weight: bold;" class="mycode_b">rpm -V </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span>. Should be silent if there are no problems.<br />
<br />
 <br />
<br />
9. Checking ALL packages: <span style="font-weight: bold;" class="mycode_b">rpm -Va</span>. Make take some time, so run this command at quiet times, but a good command to run on a regular basis for a sanity check.<br />
<br />
 <br />
<br />
10. Uninstalling package: <span style="font-weight: bold;" class="mycode_b">rpm -e </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> (erase package).  If other (installed) packages are dependent upon this package, RPM will refuse to erase it, citing dependency issues.<br />
<br />
 <br />
<br />
For more information, use <span style="font-weight: bold;" class="mycode_b">man rpm</span>.<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">3. Other Considerations</span><br />
<br />
 <br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Upgrade over install</span>: it is possible to "upgrade" a package that doesn't exist, so many people stick to using the <span style="font-weight: bold;" class="mycode_b">-Uvh</span> rather than <span style="font-weight: bold;" class="mycode_b">-ivh</span> options when installing.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">erasing leaves detritus</span>: uninstalling a package usually leaves behind data files (logs, etc) as well as config files, which may need to be manually cleared out. On the other hand, don't assume that erasing will leave behind modified config files - make a backup first if you wish to preserve them!<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">finding RPMs</span>: there are many RPM download sites out there - try <a href="http://www.rpmfind.net" target="_blank" rel="noopener" class="mycode_url">www.rpmfind.net</a> for a good start, google for others.  Some sites dedicated to the development of specific applications often have pre-build RPMs on their download pages for fast install - search around.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">distro-specific RPMs</span>: Some RPMs are suited to specific distros, for example those that end in <span style="font-weight: bold;" class="mycode_b">.fc7.rpm</span> are for Fedora7, those ending in <span style="font-weight: bold;" class="mycode_b">.mdk.rpm</span> are from Mandrake Cooker (for Mandrake/Mandriva).<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">"noarch" RPMs</span>: some RPMs ending in <span style="font-weight: bold;" class="mycode_b">.noarch.rpm</span> are not distro-specific and can be installed on any Linux distro, kernel version permitting. Webmin is a good example.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">SRPMs</span>: some RPMs with <span style="font-weight: bold;" class="mycode_b">src</span> in the filename are the source code, not compiled binaries. Installing these will only extract and copy the source code to development areas, not provide you with the actual binaries or applications - ensure you get the right file!<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">dependency hell</span>: occasionally an RPM will require some pre-requisite packages, which themselves require other pre-requisites... you'll need to search around for those, or use something like <span style="font-weight: bold;" class="mycode_b">yum</span> (described elsewhere).<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">module/library dependency</span>: occasionally RPM will complain about dependency upon a missing package, but a quick <span style="font-weight: bold;" class="mycode_b">rpm -qa</span> shows it is there. Look at installing <span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span><span style="font-weight: bold;" class="mycode_b">-devel</span>, which contains library functions not essential to the normal operation of the package but others that depend upon it. It won't affect your original package, but should satisfy the dependency requirements.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">compiled packages</span>: it is still possible to download and compile packages outside of RPM but since they won't be included in the RPM database, RPM won't know they exist - and may still complain about missing dependencies.<br />
<br />
<br />
</li>
</ul>
<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
(based upon posts originally written by anyweb, kZo, Oroshi, grep420)<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">1. Overview</span><br />
<br />
 <br />
<br />
RedHat invented the RedHat Package Management system to ease installation and maintanence of software.  Although you can still download raw source code and manually compile applications yourself, using a package management system like RPM provides a number of advantage:<br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">no compiling</span>: someone else has already done all the hard work of compiling, which saves you the hassle of getting a compiler and various libraries (Shared Objects)<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">package pre-requisites</span>: the RPM package contains information about dependencies, so won't install if the pre-requisite files are missing or too old<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">package configuration</span>: the RPM package usually contains some default/example config files - helps setting up the package from new<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">installation locations</span>: paths in the RPM package conform to the standard Linux filesystem hierarchy (/usr/bin for binaries, /etc for config files, /var/log for logfiles, etc)<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">the RPM database</span>: details of RPM-installed software are stored in an RPM database that can be interrogated to list all installed software, what files the package contains, etc.<br />
<br />
<br />
</li>
</ul>
<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">2. Basic Commands</span><br />
<br />
 <br />
<br />
1. Listing installed packages: <span style="font-weight: bold;" class="mycode_b">rpm -qa</span>, for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -qa | more<br />
basesystem-8.0-5<br />
ethtool-3-1<br />
mktemp-1.5-23<br />
perl-Filter-1.30-7<br />
tcl-8.4.9-3<br />
ed-0.2-38<br />
MAKEDEV-3.19-1<br />
pyxf86config-0.3.19-4<br />
...</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
2. Showing information about a package: <span style="font-weight: bold;" class="mycode_b">rpm -qi </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> (note that the package name, and not version needed to be specified), for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -qi ethtool<br />
Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ethtool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Relocations: (not relocatable)<br />
Version&nbsp;&nbsp;: 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vendor: Red Hat, Inc.<br />
Release&nbsp;&nbsp;: 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Build Date: Thu 03 Mar 2005 11:08:26 PM GMT<br />
Install Date: Wed 19 May 2004 01:16:31 AM BST&nbsp;&nbsp;&nbsp;&nbsp; Build Host: tweety.build.redhat.com<br />
Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: Applications/System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Source RPM: ethtool-3-1.src.rpm<br />
Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 134623&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; License: GPL<br />
Signature&nbsp;&nbsp; : DSA/SHA1, Fri 20 May 2005 08:35:08 PM BST, Key ID b44269d04f2a6fd2<br />
Packager&nbsp;&nbsp;&nbsp;&nbsp;: Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;<br />
URL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: http://sourceforge.net/projects/gkernel/<br />
Summary&nbsp;&nbsp;: Ethernet settings tool for PCI ethernet cards<br />
Description :<br />
This utility allows querying and changing of ethernet card settings,<br />
such as speed, port, auto-negotiation, and PCI locations.</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
3. Listing package contents: <span style="font-weight: bold;" class="mycode_b">rpm -ql </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> (again, only name and not version number needs to be given), for example:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -ql bzip2<br />
/usr/bin/bunzip2<br />
/usr/bin/bzcat<br />
/usr/bin/bzcmp<br />
/usr/bin/bzdiff<br />
/usr/bin/bzgrep<br />
/usr/bin/bzip2<br />
/usr/bin/bzip2recover<br />
/usr/bin/bzless<br />
/usr/bin/bzmore</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
4. Listing which package a file belongs to: <span style="font-weight: bold;" class="mycode_b">rpm -qf </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/file</span></span> - in this case, the absolute path to a filename must be specified. I have used the <span style="font-weight: bold;" class="mycode_b">which</span> command to determine the path in this case:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; which nmap<br />
/usr/bin/nmap<br />
&#36; rpm -qf /usr/bin/nmap<br />
nmap-4.53-1.0.cf.fc4</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
5. Listing contents of an uninstalled package: <span style="font-weight: bold;" class="mycode_b">rpm -qlp </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/thisPackageHere.rpm</span></span> - to see the contents of a package not yet installed, use the <span style="font-weight: bold;" class="mycode_b">qlp</span> options on the RPM file itself, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; rpm -qlp openssl096b-0.9.6b-6.i386.rpm<br />
/lib/libcrypto.so.0.9.6b<br />
/lib/libssl.so.0.9.6b<br />
/usr/share/doc/openssl096b-0.9.6b<br />
/usr/share/doc/openssl096b-0.9.6b/CHANGES<br />
/usr/share/doc/openssl096b-0.9.6b/FAQ</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
6. Installing a package: <span style="font-weight: bold;" class="mycode_b">rpm -ivh </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/thisPackage.rpm</span></span>. <span style="font-weight: bold;" class="mycode_b">i</span>=install, <span style="font-weight: bold;" class="mycode_b">v</span>=verbose, <span style="font-weight: bold;" class="mycode_b">h</span>=hash signs to show progress, eg:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># rpm -ivh Bastille-3.0.9-1.0.noarch.rpm<br />
Preparing...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;########################################### [100%]<br />
&nbsp;&nbsp;1:Bastille&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ########################################### [100%]<br />
#</code></div></div><br />
<br />
<br />
<br />
Note that root privileges or equivilent (such as <span style="font-weight: bold;" class="mycode_b">sudo</span>) are needed to install RPM packages.<br />
<br />
 <br />
<br />
7. Upgrading a package: similar to above but uses the <span style="font-weight: bold;" class="mycode_b">-U</span> option rather than <span style="font-weight: bold;" class="mycode_b">-i</span>, i.e.: <span style="font-weight: bold;" class="mycode_b">rpm -Uvh </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">/path/to/thisPackage.rpm</span></span>. <br />
<br />
 <br />
<br />
8. Checking packages: <span style="font-weight: bold;" class="mycode_b">rpm -V </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span>. Should be silent if there are no problems.<br />
<br />
 <br />
<br />
9. Checking ALL packages: <span style="font-weight: bold;" class="mycode_b">rpm -Va</span>. Make take some time, so run this command at quiet times, but a good command to run on a regular basis for a sanity check.<br />
<br />
 <br />
<br />
10. Uninstalling package: <span style="font-weight: bold;" class="mycode_b">rpm -e </span><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span> (erase package).  If other (installed) packages are dependent upon this package, RPM will refuse to erase it, citing dependency issues.<br />
<br />
 <br />
<br />
For more information, use <span style="font-weight: bold;" class="mycode_b">man rpm</span>.<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">3. Other Considerations</span><br />
<br />
 <br />
<br />
<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Upgrade over install</span>: it is possible to "upgrade" a package that doesn't exist, so many people stick to using the <span style="font-weight: bold;" class="mycode_b">-Uvh</span> rather than <span style="font-weight: bold;" class="mycode_b">-ivh</span> options when installing.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">erasing leaves detritus</span>: uninstalling a package usually leaves behind data files (logs, etc) as well as config files, which may need to be manually cleared out. On the other hand, don't assume that erasing will leave behind modified config files - make a backup first if you wish to preserve them!<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">finding RPMs</span>: there are many RPM download sites out there - try <a href="http://www.rpmfind.net" target="_blank" rel="noopener" class="mycode_url">www.rpmfind.net</a> for a good start, google for others.  Some sites dedicated to the development of specific applications often have pre-build RPMs on their download pages for fast install - search around.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">distro-specific RPMs</span>: Some RPMs are suited to specific distros, for example those that end in <span style="font-weight: bold;" class="mycode_b">.fc7.rpm</span> are for Fedora7, those ending in <span style="font-weight: bold;" class="mycode_b">.mdk.rpm</span> are from Mandrake Cooker (for Mandrake/Mandriva).<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">"noarch" RPMs</span>: some RPMs ending in <span style="font-weight: bold;" class="mycode_b">.noarch.rpm</span> are not distro-specific and can be installed on any Linux distro, kernel version permitting. Webmin is a good example.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">SRPMs</span>: some RPMs with <span style="font-weight: bold;" class="mycode_b">src</span> in the filename are the source code, not compiled binaries. Installing these will only extract and copy the source code to development areas, not provide you with the actual binaries or applications - ensure you get the right file!<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">dependency hell</span>: occasionally an RPM will require some pre-requisite packages, which themselves require other pre-requisites... you'll need to search around for those, or use something like <span style="font-weight: bold;" class="mycode_b">yum</span> (described elsewhere).<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">module/library dependency</span>: occasionally RPM will complain about dependency upon a missing package, but a quick <span style="font-weight: bold;" class="mycode_b">rpm -qa</span> shows it is there. Look at installing <span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">packagename</span></span><span style="font-weight: bold;" class="mycode_b">-devel</span>, which contains library functions not essential to the normal operation of the package but others that depend upon it. It won't affect your original package, but should satisfy the dependency requirements.<br />
<br />
<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">compiled packages</span>: it is still possible to download and compile packages outside of RPM but since they won't be included in the RPM database, RPM won't know they exist - and may still complain about missing dependencies.<br />
<br />
<br />
</li>
</ul>
<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to create an rpm in mandriva]]></title>
			<link>https://www.linux-noob.com/forums/thread-1136.html</link>
			<pubDate>Thu, 18 Oct 2007 09:49:16 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2579">anjoomla</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1136.html</guid>
			<description><![CDATA[<br />
Hi,<br />
<br />
 <br />
<br />
I am newbie here, I wanto to know how to create an rpm in mandriva, <br />
<br />
 <br />
<br />
Thanks in adv.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hi,<br />
<br />
 <br />
<br />
I am newbie here, I wanto to know how to create an rpm in mandriva, <br />
<br />
 <br />
<br />
Thanks in adv.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[I need help...]]></title>
			<link>https://www.linux-noob.com/forums/thread-1927.html</link>
			<pubDate>Sat, 24 Jun 2006 20:18:26 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1311">Jion_Wansu</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1927.html</guid>
			<description><![CDATA[<br />
I tried installing ndiswrapper-1.18 with Konsole (SUSE 10.0) and I get this:<br />
<br />
-----------------------------------------------------------------------------------------------------------------------------<br />
<br />
linux:/home/juergen/ndiswrapper-1.18 # make install<br />
<br />
make -C driver install<br />
<br />
make[1]: Entering directory `/home/juergen/ndiswrapper-1.18/driver'<br />
<br />
Can't find kernel build files in /lib/modules/2.6.13-15-default/build;<br />
<br />
  give the path to kernel build directory with<br />
<br />
  KBUILD=&lt;path&gt; argument to make<br />
<br />
make[1]: *** [prereq_check] Error 1<br />
<br />
make[1]: Leaving directory `/home/juergen/ndiswrapper-1.18/driver'<br />
<br />
make: *** [install] Error 2<br />
<br />
------------------------------------------------------------------------------------------------------------------------------<br />
<br />
 <br />
<br />
Also when I try to install VMware I get the message that gcc and gcc+ not configured. Where can I install or download gcc and gcc+<br />
<br />
Here is what it says:<br />
<br />
 <br />
<br />
-------------------------------------------------------------------------------------------------------------------------------<br />
<br />
 <br />
<br />
linux:/home/juergen # rpm -qa kernel* gcc* make<br />
<br />
kernel-default-nongpl-2.6.13-15<br />
<br />
kernel-update-tool-0.9-10<br />
<br />
make-3.80-188<br />
<br />
kernel-default-2.6.13-15<br />
<br />
linux:/home/juergen #                 <br />
<br />
----------------------------------------------------------------------------------------------------------------------------------<br />
<br />
Where can I get kernel-source, gcc, and gcc-c++ packages.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I tried installing ndiswrapper-1.18 with Konsole (SUSE 10.0) and I get this:<br />
<br />
-----------------------------------------------------------------------------------------------------------------------------<br />
<br />
linux:/home/juergen/ndiswrapper-1.18 # make install<br />
<br />
make -C driver install<br />
<br />
make[1]: Entering directory `/home/juergen/ndiswrapper-1.18/driver'<br />
<br />
Can't find kernel build files in /lib/modules/2.6.13-15-default/build;<br />
<br />
  give the path to kernel build directory with<br />
<br />
  KBUILD=&lt;path&gt; argument to make<br />
<br />
make[1]: *** [prereq_check] Error 1<br />
<br />
make[1]: Leaving directory `/home/juergen/ndiswrapper-1.18/driver'<br />
<br />
make: *** [install] Error 2<br />
<br />
------------------------------------------------------------------------------------------------------------------------------<br />
<br />
 <br />
<br />
Also when I try to install VMware I get the message that gcc and gcc+ not configured. Where can I install or download gcc and gcc+<br />
<br />
Here is what it says:<br />
<br />
 <br />
<br />
-------------------------------------------------------------------------------------------------------------------------------<br />
<br />
 <br />
<br />
linux:/home/juergen # rpm -qa kernel* gcc* make<br />
<br />
kernel-default-nongpl-2.6.13-15<br />
<br />
kernel-update-tool-0.9-10<br />
<br />
make-3.80-188<br />
<br />
kernel-default-2.6.13-15<br />
<br />
linux:/home/juergen #                 <br />
<br />
----------------------------------------------------------------------------------------------------------------------------------<br />
<br />
Where can I get kernel-source, gcc, and gcc-c++ packages.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Can anyon help with installing RPMs?]]></title>
			<link>https://www.linux-noob.com/forums/thread-1936.html</link>
			<pubDate>Sat, 10 Jun 2006 09:05:52 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1302">dam</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1936.html</guid>
			<description><![CDATA[<br />
When I double click an RPM it says it's installing but then I don't see it anywhere to run it from. I have read that putting all of the RPMs in a folder then setting this as a folder of packages in yast can let me install them using yast but it won't let me do this- can anyone help please?<br />
<br />
 <br />
<br />
Cheers<br />
<br />
Adam<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
When I double click an RPM it says it's installing but then I don't see it anywhere to run it from. I have read that putting all of the RPMs in a folder then setting this as a folder of packages in yast can let me install them using yast but it won't let me do this- can anyone help please?<br />
<br />
 <br />
<br />
Cheers<br />
<br />
Adam<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[rpm question, src or fc2 ??]]></title>
			<link>https://www.linux-noob.com/forums/thread-2842.html</link>
			<pubDate>Tue, 15 Feb 2005 15:43:44 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=673">woppa30</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2842.html</guid>
			<description><![CDATA[<br />
I hope somebody can help clarify a point.<br />
<br />
When looking at a site such as rpmfind I often see a list of rpm's that are for different versions e.g FC2, FC3 etc etc etc. You often see a .src.rpm file as well which, correct me if I am wrong, is the source code, but in a rpm package.<br />
<br />
Does this mean that if I download this .src.rpm package and install that with...<br />
<br />
rpm -ivh whatever.src.rpm it will install OK ???<br />
<br />
I hope somebody can clear this up in my foggy mind.<br />
<br />
Best wishes,<br />
<br />
David.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I hope somebody can help clarify a point.<br />
<br />
When looking at a site such as rpmfind I often see a list of rpm's that are for different versions e.g FC2, FC3 etc etc etc. You often see a .src.rpm file as well which, correct me if I am wrong, is the source code, but in a rpm package.<br />
<br />
Does this mean that if I download this .src.rpm package and install that with...<br />
<br />
rpm -ivh whatever.src.rpm it will install OK ???<br />
<br />
I hope somebody can clear this up in my foggy mind.<br />
<br />
Best wishes,<br />
<br />
David.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[dependancy hell]]></title>
			<link>https://www.linux-noob.com/forums/thread-2974.html</link>
			<pubDate>Fri, 24 Dec 2004 14:57:02 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=650">Blake_AE</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2974.html</guid>
			<description><![CDATA[<br />
Computer - Dual 700, 5 SCSI HD Raid Array, Red Hat 9<br />
<br />
 <br />
<br />
Problem - Openldap-2.2.17 is currently installed.  When this was installed, it broke 5 dependancies:<br />
<br />
 <br />
<br />
The following packages have unmet dependencies:<br />
<br />
  autofs: Depends: liblber.so.2<br />
<br />
          Depends: libldap.so.2<br />
<br />
  gnupg: Depends: libldap.so.2<br />
<br />
  libuser: Depends: liblber.so.2<br />
<br />
           Depends: libldap.so.2<br />
<br />
  nss_ldap: Depends: liblber.so.2<br />
<br />
            Depends: libldap.so.2<br />
<br />
  sendmail: Depends: liblber.so.2<br />
<br />
            Depends: libldap.so.2<br />
<br />
 <br />
<br />
I get the above message when I try to install ANYTHING with rpm or apt.  I've tried to manually add libldap.so.2 (linked to libldap.so that I built manually from an old openldap which I did not install).  Anyway, that didn't take.<br />
<br />
 <br />
<br />
So, I can't install anything with a package manager.  I can't remove the new openldap because there are 33 packages with dependancies on the new libldap libraries including apache.  It's hosting 5 live websites right now so it can't go offline.<br />
<br />
 <br />
<br />
Any ideas?  I'm on the IRC channel as well if anyone can offer help.<br />
<br />
 <br />
<br />
Thanks,<br />
<br />
Blake<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Computer - Dual 700, 5 SCSI HD Raid Array, Red Hat 9<br />
<br />
 <br />
<br />
Problem - Openldap-2.2.17 is currently installed.  When this was installed, it broke 5 dependancies:<br />
<br />
 <br />
<br />
The following packages have unmet dependencies:<br />
<br />
  autofs: Depends: liblber.so.2<br />
<br />
          Depends: libldap.so.2<br />
<br />
  gnupg: Depends: libldap.so.2<br />
<br />
  libuser: Depends: liblber.so.2<br />
<br />
           Depends: libldap.so.2<br />
<br />
  nss_ldap: Depends: liblber.so.2<br />
<br />
            Depends: libldap.so.2<br />
<br />
  sendmail: Depends: liblber.so.2<br />
<br />
            Depends: libldap.so.2<br />
<br />
 <br />
<br />
I get the above message when I try to install ANYTHING with rpm or apt.  I've tried to manually add libldap.so.2 (linked to libldap.so that I built manually from an old openldap which I did not install).  Anyway, that didn't take.<br />
<br />
 <br />
<br />
So, I can't install anything with a package manager.  I can't remove the new openldap because there are 33 packages with dependancies on the new libldap libraries including apache.  It's hosting 5 live websites right now so it can't go offline.<br />
<br />
 <br />
<br />
Any ideas?  I'm on the IRC channel as well if anyone can offer help.<br />
<br />
 <br />
<br />
Thanks,<br />
<br />
Blake<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Loads of RPMS!!!]]></title>
			<link>https://www.linux-noob.com/forums/thread-3519.html</link>
			<pubDate>Thu, 25 Mar 2004 17:06:52 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=27">hijinks</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-3519.html</guid>
			<description><![CDATA[<br />
Want to have access to almost all apps you can think of that are rpms and can easily be installed via apt-get? I know i do. This is like redhat's version of portage in a way. Its community supported in a way. <br />
<br />
 <br />
<br />
Just edit your /etc/apt/sources.list and add the following line in for whatever distro you use<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Fedora core 2<br />
rpm http://apt.physik.fu-berlin.de fedora/2/en/i386 at-testing<br />
<br />
Fedora core 1<br />
rpm http://apt.physik.fu-berlin.de fedora/1/en/i386 at-testing<br />
<br />
RH 9<br />
rpm http://apt.physik.fu-berlin.de redhat/9/en/i386 at-testing</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
then run<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>apt-get update &amp;&amp; apt-get dist-upgrade</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
that will prompt you to upgrade some of the packages probably. Just type Y to continue<br />
<br />
 <br />
<br />
Once you are fully upgraded run<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>apt-get update</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
once more. You'll now notice you have a bunch more apt sources to find stuff in<br />
<br />
 <br />
<br />
 <br />
<br />
if you run into this error on the apt-get update<br />
<br />
 <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rpmdb: unable to join the environment<br />
error: db4 error(11) from dbenv-&gt;open: Resource temporarily unavailable<br />
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)<br />
error: cannot open Packages database in <br />
E: could not open RPM database</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
don't worry.. just run the following commands to fix your rpm DB. Sometimes doing mass upgrades will cause RPM to confuse itself or error out. Repairing it fixes it 99% of the time<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rm -rf /var/lib/rpm/__db.00*<br />
rpm -vv --rebuilddb<br />
apt-get update</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
another one from the J to the Y<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Want to have access to almost all apps you can think of that are rpms and can easily be installed via apt-get? I know i do. This is like redhat's version of portage in a way. Its community supported in a way. <br />
<br />
 <br />
<br />
Just edit your /etc/apt/sources.list and add the following line in for whatever distro you use<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Fedora core 2<br />
rpm http://apt.physik.fu-berlin.de fedora/2/en/i386 at-testing<br />
<br />
Fedora core 1<br />
rpm http://apt.physik.fu-berlin.de fedora/1/en/i386 at-testing<br />
<br />
RH 9<br />
rpm http://apt.physik.fu-berlin.de redhat/9/en/i386 at-testing</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
then run<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>apt-get update &amp;&amp; apt-get dist-upgrade</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
that will prompt you to upgrade some of the packages probably. Just type Y to continue<br />
<br />
 <br />
<br />
Once you are fully upgraded run<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>apt-get update</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
once more. You'll now notice you have a bunch more apt sources to find stuff in<br />
<br />
 <br />
<br />
 <br />
<br />
if you run into this error on the apt-get update<br />
<br />
 <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rpmdb: unable to join the environment<br />
error: db4 error(11) from dbenv-&gt;open: Resource temporarily unavailable<br />
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)<br />
error: cannot open Packages database in <br />
E: could not open RPM database</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
don't worry.. just run the following commands to fix your rpm DB. Sometimes doing mass upgrades will cause RPM to confuse itself or error out. Repairing it fixes it 99% of the time<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rm -rf /var/lib/rpm/__db.00*<br />
rpm -vv --rebuilddb<br />
apt-get update</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
another one from the J to the Y<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[extract 1 file from RPM]]></title>
			<link>https://www.linux-noob.com/forums/thread-3746.html</link>
			<pubDate>Wed, 14 Jan 2004 20:04:33 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=27">hijinks</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-3746.html</guid>
			<description><![CDATA[<br />
Do you want to extract a file from an rpm package, but don't want to install the whole rpm to get it? Well here is how you do it. I am going to grab htpasswd from the httpd rpm<br />
<br />
 <br />
<br />
To find out where the file will get installed if you install the whole package run this command<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rpm -qlp httpd-2.0.40-21.i386.rpm | grep htpasswd</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now that i have /usr/bin/htpasswd as the location I can use rpm2cpio to grab just that file. <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rpm2cpio httpd-2.0.40-21.i386.rpm | cpio -ivd ./usr/bin/htpasswd</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
That should place a file in ./usr/bin/htpasswd Notice I have a . (period) in front. It will create the usr/bin and then place htpasswd in that dir in whatever dir you are in. So in my example i was in /tmp so all the full path to htpasswd is<br />
<br />
 <br />
<br />
/tmp/usr/bin/htpasswd<br />
<br />
 <br />
<br />
From there i could move it to /usr/bin and delete /tmp/usr and also the rpm.<br />
<br />
 <br />
<br />
another one from J to the Y<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Do you want to extract a file from an rpm package, but don't want to install the whole rpm to get it? Well here is how you do it. I am going to grab htpasswd from the httpd rpm<br />
<br />
 <br />
<br />
To find out where the file will get installed if you install the whole package run this command<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rpm -qlp httpd-2.0.40-21.i386.rpm | grep htpasswd</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now that i have /usr/bin/htpasswd as the location I can use rpm2cpio to grab just that file. <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rpm2cpio httpd-2.0.40-21.i386.rpm | cpio -ivd ./usr/bin/htpasswd</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
That should place a file in ./usr/bin/htpasswd Notice I have a . (period) in front. It will create the usr/bin and then place htpasswd in that dir in whatever dir you are in. So in my example i was in /tmp so all the full path to htpasswd is<br />
<br />
 <br />
<br />
/tmp/usr/bin/htpasswd<br />
<br />
 <br />
<br />
From there i could move it to /usr/bin and delete /tmp/usr and also the rpm.<br />
<br />
 <br />
<br />
another one from J to the Y<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to build rpms]]></title>
			<link>https://www.linux-noob.com/forums/thread-3789.html</link>
			<pubDate>Wed, 07 Jan 2004 20:18:24 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=12">grep420</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-3789.html</guid>
			<description><![CDATA[<br />
If you happen to find something you need but is not in rpm, the easy way is to use checkinstall to build one. <br />
<br />
 <br />
<br />
Get the checkinstall binary here: <a href="http://freshmeat.net/projects/checkinstall/?topic_id=46%2C41%2C147%2C257" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://freshmeat.net/projects/checkinstall...C41%2C147%2C257" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://freshmeat.net/projects/checkinstall...C41%2C147%2C257" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://freshmeat.net/projects/checkinstall...C41%2C147%2C257]http://freshmeat.net/projects/checkinstall...C41%2C147%2C257</a><br />
<br />
 <br />
<br />
The only trick to using checkinstall is you replace make install with it.<br />
<br />
 <br />
<br />
example using fluxbox:<br />
<br />
 <br />
<br />
untar and gunzip the file<br />
<br />
[jsw34@shadow sources]&#36; tar -xvzf fluxbox-0.1.14.tar.gz<br />
<br />
 <br />
<br />
cd into source dir<br />
<br />
[jsw34@shadow sources]&#36; cd fluxbox-0.1.14<br />
<br />
 <br />
<br />
configure; make; and run checkinstall<br />
<br />
[jsw34@shadow sources]&#36; ./configure &amp;&amp; make &amp;&amp; checkinstall<br />
<br />
 <br />
<br />
The package documentation directory ./doc-pak does not exist.<br />
<br />
Should I create a default set of package docs?  [y]:   &lt;ENTER&gt;<br />
<br />
 <br />
<br />
Please choose the packaging method you want to use.<br />
<br />
Slackware , RPM [R] or Debian [D]?    R &lt;ENTER&gt;<br />
<br />
 <br />
<br />
Please write a description for the package.<br />
<br />
End your description with an empty line or EOF.<br />
<br />
&gt;&gt; My rpm<br />
<br />
&gt;&gt; &lt;ENTER&gt;<br />
<br />
 <br />
<br />
you can edit the build values on the next screen or just hit ENTER to continue with the defaults.<br />
<br />
 <br />
<br />
Now it will build the rpm and install it.<br />
<br />
 <br />
<br />
 Done. The new package has been installed and saved to<br />
<br />
 /usr/src/redhat/RPMS/i386/fluxbox-0.1.14-1.i386.rpm<br />
<br />
 <br />
<br />
voila!  <br />
<br />
 <br />
<br />
If you have to use source, I highly reccommend using this tool. You will have accountability for everything you install and its really simple to remove or upgrade the package.<br />
<br />
 <br />
<br />
The rpms you build will be for the architecture you are using, however you can usually use them on newer releases, It may ask you for some newer dependencies though.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
If you happen to find something you need but is not in rpm, the easy way is to use checkinstall to build one. <br />
<br />
 <br />
<br />
Get the checkinstall binary here: <a href="http://freshmeat.net/projects/checkinstall/?topic_id=46%2C41%2C147%2C257" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://freshmeat.net/projects/checkinstall...C41%2C147%2C257" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://freshmeat.net/projects/checkinstall...C41%2C147%2C257" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://freshmeat.net/projects/checkinstall...C41%2C147%2C257]http://freshmeat.net/projects/checkinstall...C41%2C147%2C257</a><br />
<br />
 <br />
<br />
The only trick to using checkinstall is you replace make install with it.<br />
<br />
 <br />
<br />
example using fluxbox:<br />
<br />
 <br />
<br />
untar and gunzip the file<br />
<br />
[jsw34@shadow sources]&#36; tar -xvzf fluxbox-0.1.14.tar.gz<br />
<br />
 <br />
<br />
cd into source dir<br />
<br />
[jsw34@shadow sources]&#36; cd fluxbox-0.1.14<br />
<br />
 <br />
<br />
configure; make; and run checkinstall<br />
<br />
[jsw34@shadow sources]&#36; ./configure &amp;&amp; make &amp;&amp; checkinstall<br />
<br />
 <br />
<br />
The package documentation directory ./doc-pak does not exist.<br />
<br />
Should I create a default set of package docs?  [y]:   &lt;ENTER&gt;<br />
<br />
 <br />
<br />
Please choose the packaging method you want to use.<br />
<br />
Slackware , RPM [R] or Debian [D]?    R &lt;ENTER&gt;<br />
<br />
 <br />
<br />
Please write a description for the package.<br />
<br />
End your description with an empty line or EOF.<br />
<br />
&gt;&gt; My rpm<br />
<br />
&gt;&gt; &lt;ENTER&gt;<br />
<br />
 <br />
<br />
you can edit the build values on the next screen or just hit ENTER to continue with the defaults.<br />
<br />
 <br />
<br />
Now it will build the rpm and install it.<br />
<br />
 <br />
<br />
 Done. The new package has been installed and saved to<br />
<br />
 /usr/src/redhat/RPMS/i386/fluxbox-0.1.14-1.i386.rpm<br />
<br />
 <br />
<br />
voila!  <br />
<br />
 <br />
<br />
If you have to use source, I highly reccommend using this tool. You will have accountability for everything you install and its really simple to remove or upgrade the package.<br />
<br />
 <br />
<br />
The rpms you build will be for the architecture you are using, however you can usually use them on newer releases, It may ask you for some newer dependencies though.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to install an RPM]]></title>
			<link>https://www.linux-noob.com/forums/thread-3975.html</link>
			<pubDate>Mon, 15 Dec 2003 17:31:35 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=9">kZo</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-3975.html</guid>
			<description><![CDATA[<br />
To install:<br />
<br />
[v702623@snappy]# rpm -ivh foo.rpm<br />
<br />
 <br />
<br />
To update:<br />
<br />
 <br />
<br />
[v702623@snappy]# rpm -Uvh foo.rpm<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
To install:<br />
<br />
[v702623@snappy]# rpm -ivh foo.rpm<br />
<br />
 <br />
<br />
To update:<br />
<br />
 <br />
<br />
[v702623@snappy]# rpm -Uvh foo.rpm<br />
<br />
]]></content:encoded>
		</item>
	</channel>
</rss>