<div>Hi</div><div><br></div><div>I don&#39;t think this is right place, the best you can do is check rpm docs at <a href="http://rpm.org">rpm.org</a> (very extensive docs a and books)</div><div>If you want to be a packager - you have to check Fedora packaging guidelines:</div>

<div><a href="http://fedoraproject.org/wiki/Packaging:Guidelines">http://fedoraproject.org/wiki/Packaging:Guidelines</a></div><div><br></div><div>But I&#39;ll answer you anyway:</div><div><br></div><div>At first, you have to understand and separate backend and frontend:</div>

<div><br></div><div>rpm, dpkg - package manager backends and libraries for operating on DB populated with current situation, not the repos</div><div>yum, apt - package manager frontends with databases related to repository and upgrade operations</div>

<div><br></div><div>Do not confuse yum/apt with rpm/dpkg.</div><div><br></div><div>RPM is using sqlite database populated in /var/lib/rpm/, you should never operate on it directly. rpm, rpm libraries and yum utilities provide interface for you to manage packages, there is no reason to touch DB manually.</div>

<div><br></div>1) RPM doesn&#39;t use plaintext database<div>2) /var/cache/yum/</div><div>3) yum search MY_PACKAGE (will update cache), or yum search -C MY_PACKAGE (run entirely from system cache, don&#39;t update cache)</div>

<div>4) --skip-broken skips broken packages, dependencies are always solved automatically</div><div>5) yum update, usually cache is always update, unless -C is specified. /var/lib/yum, /var/cache/yum</div><div>6) yum doesn&#39;t operate on it&#39;s own configuration files, yum will need to create repo file in /etc/yum/repos.d as xxx.repo like:</div>

<div>[somerepo]</div><div>name=cdrom files</div><div>baseurl=file:///mnt/cdrom<br><font color="#666666" face="Droid Sans, Arial, sans-serif"><span style="font-size:12px;line-height:24px"><i><br></i></span></font>7) Doesn&#39;t need it actually, this is handled by rpm backend. rpm leaves any changed (checked with md5) configuration files with .rpmsave filename extension. rpm knows which files are configuration files.</div>

<div>8) yum whatprovides &quot;/path/file&quot;</div><div>9) rpm -qa</div><div><br clear="all">Best regards,<br>George Machitidze<br>
<br><br><div class="gmail_quote">On Tue, Oct 9, 2012 at 3:45 AM, Mohsen Pahlevanzadeh <span dir="ltr">&lt;<a href="mailto:mohsen@pahlevanzadeh.org" target="_blank">mohsen@pahlevanzadeh.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear all,<br>
<br>
I have more question on comparison of YUM and APT:<br>
1) in apt systems, /var/lib/dpkg/status exists and keeps information<br>
about installed packages such as marked as remove and etc, what&#39;s its<br>
equivalent in yum systems?<br>
2) in apt systems, /var/cache/apt/archives keeps  *deb files as<br>
temporarily, What&#39;s its equivalent in yum systems?<br>
3) apt-cache command search on local cache about a package such as<br>
&#39;apt-cache search MY_PACKAGE&#39;, now can i do it with yum systems? if true<br>
which command?<br>
4) apt-get has -f (--fixed-broken), yum does has it? such as &#39;apt-get -f<br>
install&#39; ? when you use &#39;apt-get -f install&#39; or &#39;apt-get -f<br>
dist-upgrade&#39; APT system resolve installed packages and solve any<br>
problem.<br>
5) in apt systems at first we use &#39;apt-get update&#39; to download<br>
information of packages.Then they are cached in /var/lib/apt/lists/ ,<br>
What&#39;s equivalent of apt-get update and /var/lib/apt/lists/ ?<br>
6) We use &#39;apt-cdrom add&#39; to add cdrom repo to my machine, What&#39;s its<br>
equivalent in yum?<br>
7) --purge and -e is different in dpkg or apt-get purge or apt-get<br>
reomve, Do you have same concept in yum?(remove doesn&#39;t remove<br>
information in status file, but purge remove them)<br>
8) we have apt-file command that it search on repo and get a file as arg<br>
and returns package names that arg exist in them.Do you have in yum?<br>
9) /var/lib/dpkg/available : list of installed packages.<br>
<br>
<br>
--thank you,<br>
Mohsen<br>
<br>
<br>
On Sat, 2012-10-06 at 06:54 -0500, Rex Dieter wrote:<br>
&gt; On 10/06/2012 12:40 AM, Mohsen Pahlevanzadeh wrote:<br>
&gt; &gt; Dear Matthew and Christopher,<br>
&gt; &gt;<br>
&gt; &gt; At first, sorrry for late, and thank you for your reply and your<br>
&gt; &gt; attention.<br>
&gt; &gt; In Debian systems:<br>
&gt; &gt; Directory /var/lib/apt/ keeps cache of repos, then users can search<br>
&gt; &gt; offline with apt-cache search blahblah , What&#39;s this scenario in yum<br>
&gt; &gt; system? and Where the given directory ?<br>
&gt;<br>
&gt; /var/cache/yum<br>
&gt;<br>
&gt; Use<br>
&gt; yum -C<br>
&gt; or<br>
&gt; yum --cacheonly<br>
&gt;<br>
&gt; -- rex<br>
&gt;<br>
&gt; --<br>
&gt; packaging mailing list<br>
&gt; <a href="mailto:packaging@lists.fedoraproject.org">packaging@lists.fedoraproject.org</a><br>
&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/packaging" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/packaging</a><br>
<br>
<br>
--<br>
packaging mailing list<br>
<a href="mailto:packaging@lists.fedoraproject.org">packaging@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/packaging" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/packaging</a></blockquote></div><br></div>