| |

Diegiam YUM papildomus priedus CentOS

ico-terminalDiegiam YUM papildomus priedus:

1) jei naudojate kelis diegimo saltinius, galite jiems suteikti prioritetus:

yum install yum-plugin-priorities

koreguojam /etc/yum.repos.d/CentOS-Base.repo ir prie norimo saltinio pridedam saltinio prioriteta, 1 – auksciausia, 99 – zemiausia:

priority=1

2) Atnaujinimu diegimas:

yum -y install yum-plugin-security

Naudojimas:

# display all security-related updates
yum --security check-update

# list all bugs fixed
yum updateinfo list bugzillas

# summary of advisories
yum updateinfo summary

# upgrade all packages with security info to latest available package
yum --security update

# upgrade all packages with security info to last security update
# (as opposed to the latest possible update)
yum --security update-minimal

3) yum vykdymas naudojant cron, tam diegiam:

yum install yum-cron
chkconfig yum-cron on
chkconfig yum-updatesd off
service yum-cron start
service yum-updatesd stop

Galime koreguoti atnaujinimu nuostatas:

nano /etc/sysconfig/yum-cron

Atnaujinimo parametrai:

# Default - check for updates, download, and apply
CHECK_ONLY=no
DOWNLOAD_ONLY=no

# Download the updates and email a report
CHECK_ONLY=no
DOWNLOAD_ONLY=yes

# Don't download the updates, just email a report
CHECK_ONLY=yes
DOWNLOAD_ONLY=no

Jei norite pašalinti tam tikrus paketus iš atnaujinimų, tiesiog redaguojam /etc/yum.conf ir pridedam:

exclude=kernel* mysql*
Kviečiu įvertinti įrašą!
[Viso: 0 Vidurkis: 0]

Similar Posts

Parašykite komentarą

El. pašto adresas nebus skelbiamas.

Sauga: 66 − 59 =