Re: APT,YUM and package status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear George, 

Very very thank you...

--mohsen
On Tue, 2012-10-09 at 04:35 +0400, George Machitidze wrote:
> Hi
> 
> 
> I don't think this is right place, the best you can do is check rpm
> docs at rpm.org (very extensive docs a and books)
> If you want to be a packager - you have to check Fedora packaging
> guidelines:
> http://fedoraproject.org/wiki/Packaging:Guidelines
> 
> 
> But I'll answer you anyway:
> 
> 
> At first, you have to understand and separate backend and frontend:
> 
> 
> rpm, dpkg - package manager backends and libraries for operating on DB
> populated with current situation, not the repos
> yum, apt - package manager frontends with databases related to
> repository and upgrade operations
> 
> 
> Do not confuse yum/apt with rpm/dpkg.
> 
> 
> 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.
> 
> 
> 1) RPM doesn't use plaintext database
> 2) /var/cache/yum/
> 3) yum search MY_PACKAGE (will update cache), or yum search -C
> MY_PACKAGE (run entirely from system cache, don't update cache)
> 4) --skip-broken skips broken packages, dependencies are always solved
> automatically
> 5) yum update, usually cache is always update, unless -C is
> specified. /var/lib/yum, /var/cache/yum
> 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:
> [somerepo]
> name=cdrom files
> baseurl=file:///mnt/cdrom
> 
> 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.
> 8) yum whatprovides "/path/file"
> 9) rpm -qa
> 
> Best regards,
> George Machitidze
> 
> 
> On Tue, Oct 9, 2012 at 3:45 AM, Mohsen Pahlevanzadeh
> <mohsen@xxxxxxxxxxxxxxxxx> wrote:
>         Dear all,
>         
>         I have more question on comparison of YUM and APT:
>         1) in apt systems, /var/lib/dpkg/status exists and keeps
>         information
>         about installed packages such as marked as remove and etc,
>         what's its
>         equivalent in yum systems?
>         2) in apt systems, /var/cache/apt/archives keeps  *deb files
>         as
>         temporarily, What's its equivalent in yum systems?
>         3) apt-cache command search on local cache about a package
>         such as
>         'apt-cache search MY_PACKAGE', now can i do it with yum
>         systems? if true
>         which command?
>         4) apt-get has -f (--fixed-broken), yum does has it? such as
>         'apt-get -f
>         install' ? when you use 'apt-get -f install' or 'apt-get -f
>         dist-upgrade' APT system resolve installed packages and solve
>         any
>         problem.
>         5) in apt systems at first we use 'apt-get update' to download
>         information of packages.Then they are cached
>         in /var/lib/apt/lists/ ,
>         What's equivalent of apt-get update and /var/lib/apt/lists/ ?
>         6) We use 'apt-cdrom add' to add cdrom repo to my machine,
>         What's its
>         equivalent in yum?
>         7) --purge and -e is different in dpkg or apt-get purge or
>         apt-get
>         reomve, Do you have same concept in yum?(remove doesn't remove
>         information in status file, but purge remove them)
>         8) we have apt-file command that it search on repo and get a
>         file as arg
>         and returns package names that arg exist in them.Do you have
>         in yum?
>         9) /var/lib/dpkg/available : list of installed packages.
>         
>         
>         --thank you,
>         Mohsen
>         
>         
>         On Sat, 2012-10-06 at 06:54 -0500, Rex Dieter wrote:
>         > On 10/06/2012 12:40 AM, Mohsen Pahlevanzadeh wrote:
>         > > Dear Matthew and Christopher,
>         > >
>         > > At first, sorrry for late, and thank you for your reply
>         and your
>         > > attention.
>         > > In Debian systems:
>         > > Directory /var/lib/apt/ keeps cache of repos, then users
>         can search
>         > > offline with apt-cache search blahblah , What's this
>         scenario in yum
>         > > system? and Where the given directory ?
>         >
>         > /var/cache/yum
>         >
>         > Use
>         > yum -C
>         > or
>         > yum --cacheonly
>         >
>         > -- rex
>         >
>         > --
>         > packaging mailing list
>         > packaging@xxxxxxxxxxxxxxxxxxxxxxx
>         > https://admin.fedoraproject.org/mailman/listinfo/packaging
>         
>         
>         --
>         packaging mailing list
>         packaging@xxxxxxxxxxxxxxxxxxxxxxx
>         https://admin.fedoraproject.org/mailman/listinfo/packaging
> 
> 
> --
> packaging mailing list
> packaging@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/packaging


--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux