Changes between Version 2 and Version 3 of apt2yum

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
08/30/11 20:58:09 (6 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • apt2yum

    v2 v3  
    99 * Speed: apt on Debian deals with roughly ~37,000 packages[1] and an extra 6,500 "provides"[2]. yum on Fedora deals with roughly 24,000 packages, 143,000 provides and 3,100,000 file provides. 
    1010 
    11  * Caching: apt uses manual caching and yum uses automatic caching. You can convert to manual caching by setting metadata_expire=never and manually running "yum makecache", this is rarely a good idea
     11 * Caching: apt uses manual caching and yum uses automatic caching. In the configuration section below we explain how you can convert to manual caching
    1212 
    1313 * Packaging: apt is packaged in the "apt-get" package, and extended through a number of "apt-*" packages (like apt-file). yum is packages as "yum" and extended via. "yum-utils" and a number of plugins "yum-plugin-*" and "yum-*-plugin" and also a number of packages that use the yum API (like mock or rhn-check). 
    3838   * yum list 
    3939   * repoquery 
     40 * dpkg -L 
     41   * rpm -ql 
     42 * apt-file list 
     43   * repoquery -l 
    4044 
    4145== Not so simple conversions == 
    5761 * dpkg --set-selections 
    5862   * yum-debug-restore 
     63 * dpkg -S 
     64   * repoquery --installed -f 
     65   * rpm -qf  
     66 * apt-file search 
     67   * repoquery -f 
     68   * yum provides 
     69   * rpm -qf  
    5970 
    6071== Groups of packages == 
    6677Due to the lack of groups in apt metapackages are sometimes created/used with apt where a group is used in yum (Eg. @buildsys-build and build-essential). yum has specific commands which can operate on a "group id" or a translated "group name", "yum group install" "yum group remove" etc. Also the main commands can operate on groups via. the @ prefix "yum install @core" etc. 
    6778 
     79== Apt "pinning" == 
     80 
     81There is a concept in apt calling "pinning" which means to keep a specific package at a specific version. In yum this would generally be done via. one of a number of methods: 
     82 
     83  * yum versionlock (from the yum-plugin-versionlock package) 
     84  * yum-plugin-priorities configuration. 
     85  * excluding 
     86 
     87== General configuration == 
     88 
     89While there are a lot of differences between apt and yum, this tries to list the options that will make yum behave more like apt. 
     90 
     91  * Apt uses manual caching. In yum you can set metadata_expire=never and manually run "yum makecache", note that this is rarely a good idea. 
     92 
     93  * Apt asks for confirmation much less than yum. In yum you can set alwaysprompt=false, at which point anything that doesn't require a dependency will happen without a user confrimation. 
     94 
     95 
    6896---- 
    6997[1] apt-cache dump | egrep "^Package" | wc -l