RHEL/CentOS/Fedora -ב YUM תועצמאב םימיוסמ הליבח ינוכדע תבשה


YUM (Yellowdog Updater Modified) ומכ סקוניל לש םימעט רפסמל תוליבח לוהינל לדחמ תרירבכ החותפ תכרעמ איה RHEL (Red Hat Enterprise Linux), CentOS (תיתליהק תינוגרא הלעפה תכרעמ) תורישה ילכ .הרודפ

.םישדח םינוכדע םע .ןקותי םושייהש דע םינוכדע קיספתש וא תרשב תעכ םילעפומה טנרטניא ימושייל קיזהל םילולע הלאכ םינוכדע םאש ןוויכמ ,םירחא םיירקיע םימושייו MySQL, PHP ,(HTTP) י'צאפא תרש ןוגכ תומי

.ןמקלדכ היהי ללוכ אל ריבחתה .ישילשה דצה ירגאממ םימיוסמ הליבח ינוכדע תיבשהל וא גירחהל םילוכי ונא .YUMtool תועצמאב םימיוסמ הליבח ינוכדע (תיבשהל) איצוהל םילוכי ונא דציכ םכל הארנ הז רמאמב

exclude=package package1 packages*

.תוליבח לש הללכה יאל םוקמ םע חתפמ תלימ לכ דירפהל שי ."הליבח" תונקתה וא םינוכדע תמישרו "1 הליבח" ,"הליבח" לולכי אל ליעלש ריבחתה

YUM -ב תוליבח לולכל אל דציכ

.ךלש ךרועה תריחב םע etc/yum.conf/ םשב ץבוקה תא חתפ ,םייפיצפס הליבח ינוכדע (תיבשהל) לולכל אל ידכ

# vi /etc/yum.conf

.ןלהל גצומש יפכ חתפמה תלימ תללכה יא םע ץבוקה תיתחתב האבה הרושה תא ףסוה

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

# This is the default, if you make this bigger yum won't see if the metadata 
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

## Exclude following Packages Updates ##
exclude=httpd php mysql

.ןלהל גצומש יפכ YUM תדוקפ תועצמאב םהמ דחא ןכדעל וא ןיקתהל הסננ ואוב ."mysql" -ו "httpd" "php" תוליבחל םינוכדע תיבשת הרושה תללכה יא ,ליעל המגודב

# yum update httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * extras: centos.01link.hk
 * updates: mirrors.hns.net.in
base                                                   | 3.7 kB     00:00
extras                                                 | 3.0 kB     00:00
updates                                                | 3.5 kB     00:00
updates/primary_db                                     | 2.7 MB     00:16
Setting up Update Process
No Packages marked for Update

EPEL Repo -מ תוליבח גירחהל דציכ

.etc/yum.repos.d/epel.repo/ ארקנש ץבוקה תא חתפ זאו ,EPEL רגאממ תוליבח לש םינוכדע וא תונקתה לולכל אל ידכ

# vi /etc/yum.repos.d/epel.repo

.םינוכדעב וללכייש תוליבח ןויצ ידי לע הללכהה תרוש תא ףסוה

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
## Exclude following Packages Updates ##
exclude=perl php python

.YUM הדוקפה תועצמאב EPEL רגאממ ליעל וניוצש םיצבק ןכדעל הסנ תעכ

# yum --enablerepo=epel update perl php python
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.hns.net.in
 * epel: ftp.kddilabs.jp
 * extras: mirrors.hns.net.in
 * updates: mirrors.hns.net.in
Setting up Update Process
No Packages marked for Update

.רגאמה יצבקל ףיסוהל ילבמ הליבחה תא לולכל אל ידכ yum הדוקפה תרוש תורשפאב שמתשהל םג לוכי התא

# yum --exclude=httpd update

.ןמקלדכ הדוקפב שמתשה ,תוליבח תמישר לולכל אל ידכ

# yum --exclude=mysql\* --exclude=httpd\* update

:ןאכ תאז אורקל ךילע ,סקונילב yum תדוקפ תועצמאב תומיוסמ תוליבח לש הליענ וא התבשה/המיסחל תוישומיש םיכרד 4 לע רמאמ ונזכיר הנורחאל ,לשמל ,תושעל לוכי התאש תורחא תובר םיכרד ןנשי .הצרתש תוליבח