LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > GlennsPref
User Name
Password

Notices



Rate this Entry

How to save your rpm's for future reuse in Mandriva. p8 of 10

Posted 05-12-2010 at 01:20 AM by GlennsPref

Code:
Code:
#/home/glenn/local/Archive/2010.0/kde3.5.10 
echo "Backup-rpms 2010.1" 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.1/x86_64 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.1/noarch 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.1/i586 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.1/i386 
sudo genhdlist2 --clean --xml-info -v --allow-empty-media /home/glenn/local/Archive/2010.1/contrib 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.1/kde 
echo "Backup-rpms plf" 
# sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2009.0/plf 
# sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2009.1/plf 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.0/plf 
sudo genhdlist2 --clean --xml-info -v --allow-empty-media /home/glenn/local/Archive/2010.1/plf 
echo "GenHdList2 up to date!" 
date && whoami
As new versions of Mandy come out, new lines are added and the old ones removed, as seen above (#) commented out... If genhdlist finds a corrupted package it stops and shows and error, naming the package, thanks! Next it refreshes the rpm database of installed packages, and the find data-base too.
Code:
 rpm --rebuilddb && sudo updatedb
This takes a while....
Posted in Uncategorized
Views 410 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration