Fedora - InstallationThis forum is for the discussion of installation issues with Fedora.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well it's Fedora release time again.
The last couple of upgrades I decided to reinstall from fresh on the grounds that my install was stale and while not exactly broken had some quirks and kinks that only a fresh install would fix.
This was fine with one exception, putting all the package back in. If like me you believe variety is the spice of life or I'll try anything once then you'll have a lot of packages installed as do I.
So...
I need a method of exporting my package list to a file and then getting yum or some other fiendish application to drag them all back in.
Try something like this: rpm -q -a -l --qf "%{URL} | %{SUMMARY}" | grep -v ^/ > list_of_rpms
Note that the list generated by the above will point to the source of the package, not the actual package name. Look at man rpm for other options, and rpm --querytags fo a list of what you can put in the --qf format tags.
Yes and no. Yes, that's what the code I suggested should show, and, no, it's not a suggestion to "bypass" YUM.
The point is that the YUM package name is, typically, the terminal name in the source url name. (I.e., in your first example, that package name is probably "sopwith," etc.) You should probably still use YUM to install the packages, although the "Yellow dog Update Manager" started "life" as a front-end to rpm, and you could - with some effort - use rpm directly to re-install your packages (if you need to do so).
F.Y.I., I just finished running "preupdate" on my laptop and, as far as I can see so far, all the packages I had installed in F13 (and F12) are still available and working in F14. (I did have some problems with the preupdate, but that was because my boot configuration is very "non-standard," and anaconda couldn't handle it properly.)
The exporting of packages set me off on another trail.
I have done a bit more rooting around since the last post. I installed the service pack creator which produces a nice parse-able export list.
Sample.
installed kacst-fonts-common;2.0-7.fc13;noarch;installed Common files for kacst-fonts
installed filesystem;2.4.31-1.fc13;i686;installed The basic directory layout for a Linux system
installed telepathy-filesystem;0.0.2-1.fc12;noarch;installed Telepathy filesystem layout
installed xml-common;0.6.3-32.fc13;noarch;installed Common XML catalog and DTD files
installed hal-filesystem;0.5.14-3.fc13;i686;installed Filesystem layout for HAL
installed mozilla-filesystem;1.9-5.fc12;i686;installed Mozilla filesytem layout
installed ca-certificates;2010-2.fc13;noarch;installed The Mozilla CA root certificate bundle
installed dmz-cursor-themes;0.4-3.fc13;noarch;installed X cursors themes
I could not find any reference on how you would use this to recall packages. I'm now leaning towards possibly doing a ruby script to launch yum with the list. This would probably mean installing one package at a time.
I too have a laptop plus one other desktop. Preupdate is attractive and my boot configuration is about as standard as it gets, F13 to F14 in principal should be straight forward. The thing that put me off was a comment at Fedora's upgrade page that upgrading this way was not really tested .
If I recall correctly, yum has an option to read the package list from a file. If that's correct, you might only need to build the list.
You might want to look at the source code for the yumex application. As part of its initialization it generates a database file containing all the installed packages (using yum), so it may be possible to get yum to generate the list for you, but I couldn't see any obvious way to do that whilst reading the yum manual pages.
Update.
Ok this on the whole works.
Some things to remember.
1) Put your package lists back in before you start pushing your packages back in.
2) Allow plenty of time. It took 20 minuets to install Fedora 14 and 2 1/2 hours to get stuff back in.
3) Anything you added manually to root "/" folders will be lost.
4) Any databases in root tree will be lost, back it up before beginning.
I have a custom file system layout as follows.
/boot
/
/home
Boot and root "/" are disposable however home is mounted on a separate volume. I have always done this but most installs will default putting home on the root partition. Again this will destroy you home folder if you do not separate your home folder from root.
LVM This is untested. You either love LVM or hate it. By default Fedora seems to think we love it and will configure systems to use it. Personally I hate it.
When launching yum for the install use --skip-broken you will get most of the packages back in. I managed about 98% of mine, what was missing wasn't worth worrying about.
When you first log back your desktop might be corrupted, not working as you had it, Compiz or other 3D desktops don't seem to pick up from where they left off which is strange considering your on/off and configuration is in your home folder.
Turn off 3D then back on again. That worked for me.
My laptop has an intel graphics chip, so my accelerated desktop works out of the box.
Ati and Nvidia users may need a little more effort.
As always backup your data. You know it makes sense.
I have had my new install for over a week with no noticeable problems except with wine. But then again Wine ability to self destruct on update is not uncommon.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.