• news
  • pics
  • linux
  • windows
  • proxmox
  • game
  • news
  • pics
  • linux
  • windows
  • proxmox
  • game
Home
linux

how to configure local Yum source and external network source in Linux

Local source configuration method

Go into /etc/yum.reps.d/ directory and create a file ending with .repo.The content like follow.

[base]
name=cdrom          #cdrom is notes.it can write casually.
baseurl=file:///mnt/    #local cdrom's path. path of the yum source.
enabled=1
gpgcheck=0        #Check the legitimacy of the yum source.when the value is 1,need follow line.
#gpgkey=URL #check url

use command yum clean all and yum repolist to make metadata.after these you can use local yum.

External network configuration method

1 backup the yum source that the system had when you install.
mv /etc/yum.repos.d/*.repo /etc/yum/repos.d/repo_backup/

2 download new yum source.
wget http://mirrors.aliyun.com/repo/Centos-7.repo
also use command yum clean all and yum repolist to make metadata

Or you can modify the source list file under Debian linux system.
vi /etc/apt/sources.list
add yum source address into it.For example:

#source address of Aliyun
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
 deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
 deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
 deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
 deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
 deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
 deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
 deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
 deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
 deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

run apt-get update.Then you can install software by new source.

Previous article how to passthough gpu card in proxmox
Next article Recursive change of permissions for folders and subfolders under Linux

therock

19 Comments

  1. frozen keto meals
    July 9, 2021 at 11:45 am

    keto diet benefits

  2. dirty keto
    July 7, 2021 at 2:19 am

    keto on a budget

  3. keto pure diet
    July 7, 2021 at 12:46 am

    keto sides

  4. sa dating sites free
    June 26, 2021 at 8:38 am

    100 percent free black dating sites

  5. legit dating sites free
    June 25, 2021 at 12:54 pm

    singapore free dating site 100

  6. free dating sites in houston
    June 24, 2021 at 5:31 pm

    free american dating sites 2021

  7. browse free dating sites
    June 24, 2021 at 3:23 pm

    new dating site free

  8. uk dating sites for free
    June 24, 2021 at 7:22 am

    free trial dating numbers

  9. reviews for free senior dating sites
    June 2, 2021 at 8:22 am

    over 60 dating free

  10. free social dating sites in usa
    June 1, 2021 at 9:47 pm

    free dating websites in usa

  11. free philippine dating site
    June 1, 2021 at 8:54 pm

    truck driving dating sites free

  12. seniors dating sites free
    June 1, 2021 at 6:58 pm

    100 free no credit card required dating sites

  13. free dating site usa
    May 20, 2021 at 10:15 pm

    100 free dating site in the world

  14. free online dating no hidden fees
    May 20, 2021 at 7:41 pm

    free dating site in uk without payment

  15. free dating sites for stds
    May 20, 2021 at 7:14 pm

    desperate women free dating

  16. 100percent free dating
    May 20, 2021 at 12:08 am

    free dating site sex

  17. golfers only dating for free
    May 19, 2021 at 6:44 pm

    golfers only dating for free

  18. most swiped right girl on tinder
    May 16, 2021 at 4:00 pm

    most swiped right girl on tinder

    how to configure local Yum source and external network source in Linux – rock funs

  19. tinder super like explained
    May 16, 2021 at 12:28 pm

    tinder super like explained

    how to configure local Yum source and external network source in Linux – rock funs

Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Categories
  • game
  • linux
  • news
  • pics
  • proxmox
  • windows
Recent Posts
  • proxmox7.3直通显卡
  • Proxmox VE 直通显卡方案及解决N卡Code43
  • Linux系统出现:You have new mail in /var/spool/mail/root 的原因及解决办法
  • debian系统解决中文乱码
  • pve添加git和pvetools
Recent Comments
  • EdgarTot on proxmox7.3直通显卡
  • Ashvem on proxmox7.3直通显卡
  • Tedvem on proxmox7.3直通显卡
  • Jackvem on proxmox7.3直通显卡
  • Miavem on proxmox7.3直通显卡
Archives
  • March 2023 (1)
  • December 2022 (4)
  • November 2022 (6)
  • April 2022 (1)
  • February 2022 (5)
  • January 2022 (2)
  • December 2021 (3)
  • November 2021 (1)
  • October 2021 (2)
  • September 2021 (1)
  • August 2021 (1)
  • July 2021 (8)
  • June 2021 (14)
  • May 2021 (2)
  • April 2021 (2)
  • March 2021 (10)
  • January 2021 (4)
  • December 2020 (4)
  • November 2020 (13)
  • April 2020 (276)
  • March 2020 (1)
  • June 2019 (5)
  • May 2019 (10)
  • December 2015 (1)