On 01/28/2012 06:11 PM, Michael Hennebry wrote:
One of the things I would like to do with kickstart is to get
aproximately the same set of packages I have installed now.
I always forget something that I have to install later,
so just using the anaconda-generated kickstart file would
not do the trick.
I've looked at the kickstart file, I've read about its format
and I've looked at package lists from yum and rpm.
The correspondence is not obvious to me.
Assuming that the kickstart file is correct, how do I add a package to it?
How do I figure out what name to give in the kickstart file?
I'm pretty sure that I didn't add tex after install,
but look here:
[root@localhost ~]# yum provides '*/tex'
...
texlive-2007-56.fc14.i686 : Binaries for the TeX formatting system
Repo : installed
Matched from:
Filename : /usr/bin/tex
[root@localhost ~]# rpm -q --all | grep tex
texlive-texmf-2007-36.fc14.noarch
texlive-texmf-fonts-2007-36.fc14.noarch
texlive-utils-2007-56.fc14.i686
tex-preview-11.86-6.fc14.noarch
gettext-0.18.1.1-5.fc14.i686
texlive-2007-56.fc14.i686
texlive-texmf-latex-2007-36.fc14.noarch
texlive-texmf-dvips-2007-36.fc14.noarch
texlive-dvips-2007-56.fc14.i686
texlive-latex-2007-56.fc14.i686
gettext-libs-0.18.1.1-5.fc14.i686
libtextcat-2.2-11.fc13.i686
[root@localhost ~]# grep tex anaconda-ks.cfg
@text-internet
Also, anaconda-ks.cfg was generated by a F14 install.
I'll be installing F16.
How badly will that bite me?
As a brute force method, to get exactly the packages which you currently
have installed now, you can do:
rpm -qa --qf '%{name}\n' >rpmlist
and then insert your rpmlist into your kickstart file.
At a higher level, you can run system-config-kickstart which will try
and collect all of the information about packages you have installed and
then will kick out a kickstart file you can use.
In order to get info about which groups are available, what they
install, etc.
yum grouplist -v # all groups, pipe it through a pager
yum groupinfo text-internet # lists default/mandatory/optional packages
As to your question of what installed tex, you can use repoquery to get
that info.
repoquery --groupmember texlive
tells me that it is in the authoring-and-publishing group. Using "yum
groupinfo authoring-and-publishing" tells me that it is a mandatory
package. So if you specify @authoring-and-publishing in your kickstart
file, you will get that package. If you don't want it, then add it to
your kickstart file and prefix it with a dash/minus sign.
With each new rev of the distro, you get to make sure that all of your
favorite packages are getting installed and you'll also have a new list
of packages that you don't want installed. You can also do a manual
install of F16 and select the packages you want and don't want. Then you
do an rpm -qa --qf '%{name}\n' |sort >f16list and do the same on the f14
box. Do a diff and see what changed. Some of them will be things like
the change from upstart to systemd others will be random packages that
you installed on f14 and not on f16.
As to editing the kickstart file to add a single package, just insert
the name of the package between the %packages and %end flag. I refer to
http://fedoraproject.org/wiki/Anaconda/Kickstart rather often when I'm
updating kickstart files. Specifically look at the Chapter 3. Package
Selection section.
HTH,
Hugh
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list