Xiaopei's DokuWiki

These are the good times in your life,
so put on a smile and it'll be alright

User Tools

Site Tools


it:linux:centos

CentOS

SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora - Community Help Wiki

  • download only
    # Install the yum-utils package:
    $ yum install yum-utils
    # Run the command followed by the desired package:
    $ yumdownloader <package>
     
    # Note:
    # The package is saved in the current working directly by default
    # Be sure to add --resolve if you need to download dependencies.
  • no module named yum
    $ vi /usr/bin/yum
    ## change 
    #!/usr/bin/python 
    ## to 
    #!/usr/bin/python2.4
    ## or
    #!/usr/bin/python2.6

centos 6.5 6.* 安装 nodejs

# 安装 EPEL
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
 
# 安装 npm
yum install npm
it/linux/centos.txt · Last modified: 2015/01/20 10:35 by admin