403Webshell
Server IP : 112.74.42.100  /  Your IP : 216.73.216.142
Web Server : nginx/1.20.2
System : Linux iZwz96lx4pjqiy84w4hni7Z 5.10.134-17.3.al8.x86_64 #1 SMP Thu Oct 31 14:29:57 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/rhn-client-tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/rhn-client-tools/mirrors.txt
yum/apt mirror support in up2date

as of up2date 4.3, up2date supports a list of mirrors for
each channel. 

The configuration for mirrors is spread out a bit for
flexibility, but should be easy enough.

The first thing to enable use of mirrors is to add a
"yum-mirror" or "apt-mirror" config line in
/etc/sysconfig/rhn/sources. This line is of
the format:

yum-mirror  channel-label  uri
  or
apt-mirror  channel-label uri

The uri is a location where a mirror list can be
found. This can be a local file:// url or a http
url. This file will be fetched, and parsed. The format
is one url per line, with the url being equilivent to
the base url in the sources file:

for example, a mirrors list for fedora-core-1 might look like:

http://rpmfind.net/linux/fedora/core/1/i386/os/
http://distro.ibiblio.org/pub/linux/distributions/fedora/linux/core/1/i386/os/
http://mirror.eas.muohio.edu/fedora/linux/core/1/i386/os/
http://mirror.hiwaay.net/redhat/fedora/linux/core/1/i386/os/
http://ftp.dulug.duke.edu/pub/fedora/linux/core/1/i386/os/
http://redhat.secsup.org/fedora/core/1/i386/os/

By default, up2date will fetch this file each time it is
ran, and update it. 

If the user wants to limit the list of mirrors, they
can create a file in /etc/sysconfig/rhn/mirrors/ with
the name of the channel as the filename. For example,
/etc/sysconfig/rhn/mirrors/fedora-core-1 might contain:

http://distro.ibiblio.org/pub/linux/distributions/fedora/linux/core/1/i386/os/
http://ftp.dulug.duke.edu/pub/fedora/linux/core/1/i386/os/

up2date will parse this file, and randomly pick one of the
mirrors in it to use for the duration of the up2date sesssion. 
Note that if the /etc/sysconfig/rhn/mirrors/CHANNELNAME file
exists, up2date will use it, and will not fetch the mirror
list from the uri listed in /etc/sysconfig/rhn/sources for
the "yum-mirror" type

Note: if the yum-mirror line doesnt exist in the config
file for a given channel, no mirrors will be used and
the url specified for that channel will be used instead.




Youez - 2016 - github.com/yon3zu
LinuXploit