<div>Hi</div><div><br></div><div>I don'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'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'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'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't operate on it'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'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 "/path/file"</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"><<a href="mailto:mohsen@pahlevanzadeh.org" target="_blank">mohsen@pahlevanzadeh.org</a>></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's its<br>
equivalent in yum systems?<br>
2) in apt systems, /var/cache/apt/archives keeps *deb files as<br>
temporarily, What's its equivalent in yum systems?<br>
3) apt-cache command search on local cache about a package such as<br>
'apt-cache search MY_PACKAGE', 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 'apt-get -f<br>
install' ? when you use 'apt-get -f install' or 'apt-get -f<br>
dist-upgrade' APT system resolve installed packages and solve any<br>
problem.<br>
5) in apt systems at first we use 'apt-get update' to download<br>
information of packages.Then they are cached in /var/lib/apt/lists/ ,<br>
What's equivalent of apt-get update and /var/lib/apt/lists/ ?<br>
6) We use 'apt-cdrom add' to add cdrom repo to my machine, What'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'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>
> On 10/06/2012 12:40 AM, Mohsen Pahlevanzadeh wrote:<br>
> > Dear Matthew and Christopher,<br>
> ><br>
> > At first, sorrry for late, and thank you for your reply and your<br>
> > attention.<br>
> > In Debian systems:<br>
> > Directory /var/lib/apt/ keeps cache of repos, then users can search<br>
> > offline with apt-cache search blahblah , What's this scenario in yum<br>
> > system? and Where the given directory ?<br>
><br>
> /var/cache/yum<br>
><br>
> Use<br>
> yum -C<br>
> or<br>
> yum --cacheonly<br>
><br>
> -- rex<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><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>