Darrell Betts
2008-Dec-07 17:17 UTC
[CentOS] New to Centos and have question about updating packages
I have been using Freebsd for along time. I have a client of mine that wants me to use Centos for his email server and web server. Anyway with Freebsd to update the packages file you use the following commands. portsnap fetch fetches all the current port trees portsnap update adds all the new ports to the tree on the server portupgrade -arR will install all the ports that are installed on the server. Now my question is what are the commands for Centos to fetch ,update and install, all the packages installed on the server. I would like to use Yum. Any help would be great. Thanks Darrell Betts betts at norden1.com ----------------------------------------------------------- Looks like I Picked the Wrong Week to Stop Sniffing Glue. -- Steve McCroskey -- Live ATC Feed from Toledo Express Airport http://audio.liveatc.net:8012/ktol.m3u
Tosh
2008-Dec-07 17:20 UTC
[CentOS] New to Centos and have question about updating packages
Darrell Betts wrote:> I have been using Freebsd for along time. I have a client of mine that > wants me to use Centos for his email server and web server. Anyway > with Freebsd to update the packages file you use the following commands. > portsnap fetch fetches all the current port trees > portsnap update adds all the new ports to the tree on the server > portupgrade -arR will install all the ports that are installed on the > server. > Now my question is what are the commands for Centos to fetch ,update > and install, all the packages installed on the server. I would like to > use Yum. Any help would be great. > > Thanks > > Darrell Betts > betts at norden1.com > ----------------------------------------------------------- > Looks like I Picked the Wrong Week to Stop Sniffing Glue. > -- Steve McCroskey -- > > Live ATC Feed from Toledo Express Airport http://audio.liveatc.net:8012/ktol.m3u > > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centossimply "yum update", this compares your packages with the package server (repo) and downloads and updates all packages to the latest version
Lanny Marcus
2008-Dec-07 17:21 UTC
[CentOS] New to Centos and have question about updating packages
On Sun, Dec 7, 2008 at 12:17 PM, Darrell Betts <betts at norden1.com> wrote:> I have been using Freebsd for along time. I have a client of mine that > wants me to use Centos for his email server and web server. Anyway > with Freebsd to update the packages file you use the following commands. > portsnap fetch fetches all the current port trees > portsnap update adds all the new ports to the tree on the server > portupgrade -arR will install all the ports that are installed on the > server. > Now my question is what are the commands for Centos to fetch ,update > and install, all the packages installed on the server. I would like to > use Yum. Any help would be great."yum update" will do it for you. Normally, you will not need to reboot after updating, unless you update the kernel or several other packages that require a reboot.
Barry Brimer
2008-Dec-07 17:23 UTC
[CentOS] New to Centos and have question about updating packages
> Now my question is what are the commands for Centos to fetch ,update > and install, all the packages installed on the server. I would like to > use Yum. Any help would be great.Welcome Darrell. Here is the summary version: To install a specific package, such as postfix from a repository that you are configured to get packages from use: yum install postfix To update to the newest version of postfix that is in your configured repositories use: yum update postfix To update everything in repositories that are configured on your machine use: yum update If you are moving between point releases (CentOS 5.1 to CentOS 5.2) use: yum upgrade Hope this helps. Barry
Niki Kovacs
2008-Dec-07 18:26 UTC
[CentOS] New to Centos and have question about updating packages
Darrell Betts a ?crit :> Now my question is what are the commands for Centos to fetch ,update > and install, all the packages installed on the server. I would like to > use Yum. Any help would be great. >I wrote an abstract on basic Yum usage. It's in French, but it's not hard to guess what the command line bits mean: http://www.microlinux.fr/article.php3?id_article=40 Knowing how to handle RPM can also come in quite useful sometimes: http://www.microlinux.fr/article.php3?id_article=39 Cheers, Niki Kovacs
Vandaman
2008-Dec-07 18:57 UTC
[CentOS] New to Centos and have question about updating packages
Darrell Betts wrote:> Now my question is what are the commands for Centos to > fetch ,update > and install, all the packages installed on the server. I > would like to > use Yum. Any help would be great. >Try "yum --help" and "man yum" which have a lot of info. Also the CentOS docs on http://www.centos.org/docs/ has yum docs. So if you for just install CentOS 4.7 from the ServerCD and do # yum check-update it will give you a list of packages to be updated, which you can do by # yum update and then say yes or no. Welcome to CentOS BTW. Regards, Vandaman.