View Full Version : "yum update" or "./build update"
pinotje
02-11-2011, 01:00 PM
Hi all,
I'm running DirectAdmin v1.37.0 on CentOS 5.
Which is the best method to update software like mysql, php, ssh, etc.?
Is it "yum update"-method or using the custombuild-method (./build update) ?
Thanks in advance.
ISOS6
02-11-2011, 01:23 PM
I do not use CentOS. But you should run ./build update, because then everything is configured with DirectAdmin.
nobaloney
02-13-2011, 12:00 PM
Which is the best method to update software like mysql, php, ssh, etc.?
Is it "yum update"-method or using the custombuild-method (./build update) ?
If something is installed from RPMs, then you should generqally use YUM to update it; if it's installed by CustomBuild, then you should use CustomBuild to update it.
Your /etc/yum.conf file should have the following line:
exclude=bind-chroot httpd* mysql* php* perl* apache* mod_* MySQL* *ftp* exim* sendmail* php* da_*
If it does, then you can't use yum to update anything listed in this line.
Additionally yum update won't update anything not already installed, but, for example, yum update PROGRAM will install PROGRAM if it's not already installed.
Of the programs you've listed, on my servers ssh is managed by YUM while the others are managed by CustomBuild.
Jeff
asishlla
02-14-2011, 01:27 AM
Hi jlasman ,
which command i need to run for chech if there any update for kernel?
thank you
zEitEr
02-14-2011, 01:33 AM
Let me answer the question:
Basically and first of all, run:
man yum
Secondly, learn to use google:
http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/Using_yum_to_update_and_install_applications
p.s. if you really want to know how to administrate and support your server, use google and read books/docs/mans.
asishlla
02-14-2011, 01:59 AM
Thank you zEitEr ,
Once again you proved to me that you fast and professional!
You are right man,
Must search and reading (I read and search)
But first I need a helping hand so that I can stand on my feet.
There are lots of things that i did without ask in the forum,,But there are things I can not do without having to seek advice, i do not want to get disaster!
I'm sure you even though you're search, and read, sometimes you asked!
Thank you for your patience :)
nobaloney
02-14-2011, 09:50 AM
Note that this response presumes Linux. I don't have enough experience with FreeBSD to write about it authoritatively.
Over the years it's been recommended to never accept an automatic kernel update because if the new kernel won't run on your server (for example if a driver required by your hardware isn't compatible) your system could be down and you might have to make a trip to the datacenter to fix it.
However, over time kernels have become well standardized, and if you're using a major Linux distribution (most of us are, on our DirectAdmin-based servers), and the standard kernel installed on your server without additional drivers, the updates will work. So you can remove kernel references from your exclude list but at your own peril.
YUM kernel updates will install the new kernel, and will update the server startup scripts, generally either GRUB or LILO) (for an unerstanding of how linux boots, look here (http://www.ibm.com/developerworks/linux/library/l-linuxboot/) [ibm.com]). The kernel itself won't run until/unless the server is rebooted, and if it won't start a datacenter trip may be necessary to edit the GRUB or LILO configuration if you don't have remote keyboard/monitor to your server.
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.