MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
ive been trying to find a good way to backup linux, and the only good one i can find is the one built into the MCC. so, i have a question about saving a list of installed RPMS so whenever i need to reinstall mandrake 10 (just in case i need to reinstall it) i dont have to manually select all of my previously installed RPMS, i can just have them handy on a list.
i know that when installing you can save the list on a floppy, but i dont have a floppy drive, and i heard in the next version you can save the info on a USB drive.
how can i save the list of installed RPMS so i can just tell it to reinstall those RPMS from the cds (not the internet)
if you would like to save the list to a file simply run rpm -qa > textfile.txt. with Mandrake however you would run urpmq > textfile.txt if I am not mistaken.
another trick you can use, is (if you have the hard drive space) create a directory somewhere on your computer (either in the Mandrake install, or on a free partition) & copy all the RPM files from the Mandrake CD's into that directory. then, go to Mandrake Control Center->software->media manager. click "remove" & remove all your CD sources (& "main" source if you have one). then, click "add", choose "local source", give it a name, browse to the folder where you put the RPM's, leave the "path to hdlist......." blank, & click "save". click "save" in the media manager when after the source is added. now, when you want to install a package, it won't ask you to insert a CD or have to download it from a mirror.
you should still keep a "contrib" source & a "plf" source. they are always good to have, & sometimes neccessary for dependency issues.
Not only do I kep a list of my installed RPMs, I kep the list in the form of a shell script so that, to reinstall, I just have to run the file! My list looks something like this:
Name the file "reinstall_stuff" or something like that, and then "chmod u+x reinstall_stuff" to make it executable. Then run it (type "reinstall_stuff") and it will go through each program and execute the urpmi program for it, which will install it from CD-ROM or FTP or however you installed it in the first place. (If it's already installed, it will say so and skip it.)
By the way, if you installed a known package like "gimp" that is already listed in your RPM Sources setup (Mdk Ctrl Ctr -> Software -> Sources), then you can just use the command
urpmi gimp
But if you have a specific file that you downloaded, like "/home/DAChristen29/downloads/WeirdAndWonderfulGIMPversion.rpm", then you have to specify the full pathname
I've never used kickstart (whatever that is --does it come with Mandrake?) or the backup command in Mdk Ctrl Ctr, preferring to write my own scripts so I know exactly what is happening with the files.
If you already have a file with the list of programs in it, you can use an appropriate sed command to add the characters "urpmi " to the front of each line to turn it into a script file. Something like:
sed -e "s/^/urpmi /" <MyListOfRPMs >reinstall_stuff
Don't forget to add "#!/bin/sh" as the first line.
thanks a bunch. im about to reformat my drive in a few weeks because im completely wiping windows off,and need to reinstall linux. now everything's set, thanks.
Distribution: Kubuntu 14.04 (Dell Linux-preinstalled laptop + 2 other laptops)
Posts: 117
Rep:
Quote:
im about to reformat my drive in a few weeks because im completely wiping windows off,and need to reinstall linux
You sound like you're going to wipe your linux partition. Why? If I were you, I would use a partitioning program (Partition Magic is the most well-known; I use Acronis Partition Expert, downloaded for US$46; there are free ones too that I haven't used before like Ranish Partition Manager, QtPartEd, GNU PartEd, etc.) that resizes a partition without destroying the other partitions.
Just shrink your Windows partition to size 0 or something, and leave the Linux partition alone. (Don't actually delete the Windows partition because then the other partitions get renumbered, and your former /dev/hda7 is now /dev/hda6, etc. --big headache).
You could also shrink the Windows partition to a small size enough to fit a second Linux installation --3GB ought to be enough-- and then convert that to a Linux filesystem like ext2, ext3 or ReiserFS, all ready to accept a new installation. (You wouldn't actually have to install something there.)
Or you could shrink the Windows partition and turn it into another swap partition, perhaps half a GB to one GB in size.
In any case, with the new room created on your hard drive, you can just expand the current Linux partition to take up the rest of your space.
Linux is not Windows. You don't have to re-install every 10 months.
yeah, i know how to repartition. i dont want 2 distros on this machine because i only need one. i dont need windows for anything really except adobe premiere.
im still diciding on if i should repartition/resize because if i run windows in vmware to use adobe premiere, i might want to use the extra partition as my windows virtual drive. or, i might just use my /home dir in linux and keep the virtual drive there, *OR* i might repartition my drive so windows has a 7 GB space, and just use that for my LAN party games and stuff. its still in dispute, but i have about 2 months to make up my mind.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.