I am trying to learn some of the in's and out's of yum, and thanks to the help of many on this forum, things are beginning to make more sense (though I still have a lot more to learn). My initial Centos install was the "minimum". From there I used yum grouplist and yum installgroup.
However, one of the members helped me with using yum to install php-mysql and I just found on this forum php-gd (which I installed). It appears one "just has to know about these packages" or have I missed something?
Once I have an install that I like, can I save off the list of packages and use it the next time I do an install?
Also, when I do a "yum list", I do not see the php-mysql or the php-gd listed. Am I looking at the incorrect list?
Todd
It appears one "just has to know about these packages" or have I missed something?
Well, if they're dependencies then they'll install automagically, if they're related to a program or two (like php-gd is related to php and gd) then the convention is usually of the a-b or b-a format. The rest is usually a matter of installing entire package groups (yum groupinstall) or knowing the package name (a little black magic - but then you can guess and use "yum info packagename" for info, or even "yum info" for everything)
Once I have an install that I like, can I save off the list of packages and use it the next time I do an install?
yum list installed
or
rpm -qa
Also, when I do a "yum list", I do not see the php-mysql or the php-gd listed. Am I looking at the incorrect list?
"yum list" lists installable packages in the repositories currently enabled.
On 8/29/05, Maciej Zenczykowski maze@cela.pl wrote:
It appears one "just has to know about these packages" or have I missed something?
Well, if they're dependencies then they'll install automagically, if they're related to a program or two (like php-gd is related to php and gd) then the convention is usually of the a-b or b-a format. The rest is usually a matter of installing entire package groups (yum groupinstall) or knowing the package name (a little black magic - but then you can guess and use "yum info packagename" for info, or even "yum info" for everything)
Ever few weeks I like to do "yum list available >YumAvailable.txt" and then "yum list installed > YumInstalled.txt" so that I can quickly grep through the files and see what is available or installed. That way, if you know you need the php-gd something and you are in the directory with your YumAvailable.txt and YumInstalled.txt you can do a "grep -Hi php Yum* | grep -i gd" and have a pretty good idea of whether you have it or not, whether it's installed or not.
Also, when I do a "yum list", I do not see the php-mysql or the php-gd listed. Am I looking at the incorrect list?
"yum list" lists installable packages in the repositories currently enabled. _______________________________________________
There are other options you can pass to "yum list" to get "available" packages in repositories but not on the system or "installed" packages. This information is available in more detail when you execute "man yum".
Greg
Todd Cary wrote:
I am trying to learn some of the in's and out's of yum, and thanks to the help of many on this forum, things are beginning to make more sense (though I still have a lot more to learn). My initial Centos install was the "minimum". From there I used yum grouplist and yum installgroup.
However, one of the members helped me with using yum to install php-mysql and I just found on this forum php-gd (which I installed). It appears one "just has to know about these packages" or have I missed something?
Once I have an install that I like, can I save off the list of packages and use it the next time I do an install?
Also, when I do a "yum list", I do not see the php-mysql or the php-gd listed. Am I looking at the incorrect list?
Todd
Todd -
If you're really wanting to go a bit more hardcore, look into a Kickstart installation. RedHat has plenty of information on their site about this procedure.
I've taken it so far as to make my own custom install CD, which is about 428M in size. These CDs also include some proprietary software that our company makes. Using this method, I can rest assured that the installation will happen in the same manner on any number of these machines, without a hitch.
It's also interesting to take a look at root's ~/anaconda-ks.cfg file. This is almost exactly what a Kickstart configuration file looks like. Looking at this file will give you an idea of which packagse, groups, and other miscellaneous software is installed.
Hope that helps -dant
Many thanks....
dan.trainor wrote:
Todd Cary wrote:
I am trying to learn some of the in's and out's of yum, and thanks to the help of many on this forum, things are beginning to make more sense (though I still have a lot more to learn). My initial Centos install was the "minimum". From there I used yum grouplist and yum installgroup.
However, one of the members helped me with using yum to install php-mysql and I just found on this forum php-gd (which I installed). It appears one "just has to know about these packages" or have I missed something?
Once I have an install that I like, can I save off the list of packages and use it the next time I do an install?
Also, when I do a "yum list", I do not see the php-mysql or the php-gd listed. Am I looking at the incorrect list?
Todd
Todd -
If you're really wanting to go a bit more hardcore, look into a Kickstart installation. RedHat has plenty of information on their site about this procedure.
I've taken it so far as to make my own custom install CD, which is about 428M in size. These CDs also include some proprietary software that our company makes. Using this method, I can rest assured that the installation will happen in the same manner on any number of these machines, without a hitch.
It's also interesting to take a look at root's ~/anaconda-ks.cfg file. This is almost exactly what a Kickstart configuration file looks like. Looking at this file will give you an idea of which packagse, groups, and other miscellaneous software is installed.
Hope that helps -dant _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos