Changes from Version 1 of apt2yum

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
08/30/11 17:19:43 (6 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • apt2yum

    v0 v1  
     1= Some yum usage for people who know "apt" = 
     2 
     3If you are familiar with the apt package manager on Debian/Ubuntu this page should help you transfer your knowledge to working with yum on Fedora/RHEL/CentOS/etc. 
     4 
     5Note that this page as currently written is by non-apt experts, so there may be some mistakes. 
     6 
     7== General points == 
     8 
     9 * 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. 
     10 
     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. 
     12 
     13 * 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). 
     14 
     15== Simple conversion == 
     16 
     17For some of the basic packaging operations, apt and yum are basically identical. 
     18 
     19 * apt-get install 
     20   * yum install 
     21 * apt-get upgrade 
     22   * yum upgrade 
     23 * apt-get remove 
     24   * yum remove 
     25 * apt-get --reinstall install 
     26   * yum reinstall 
     27 * apt-get install foo=1.0 (to downgrade to version 1.0) 
     28   * yum downgrade foo-1.0 
     29 * apt-get clean 
     30   * yum clean 
     31 * apt-get build-dep 
     32   * yum-builddep 
     33 
     34== Not so simple conversions == 
     35 
     36These are "similar", but there are some differences in how they act. 
     37 
     38 * apt-cache show 
     39   * yum info 
     40   * repoquery -i 
     41 * apt-get purge 
     42   * yum remove 
     43 * apt-get dist-upgrade 
     44   * yum upgrade 
     45   * yum distro-sync 
     46 * apt-get source 
     47   * yumdownloader --source 
     48 
     49 
     50[1] apt-cache dump | egrep "^Package" | wc -l 
     51[2] apt-cache show ".*" | fgrep "^Provides" | tr , '\n' | wc -l