LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > GlennsPref
User Name
Password

Notices



Rate this Entry

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

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

Code:
	This script also calls another file to change the permissions so I can use them with out errors
 such as read-only.
Code:
#! /bin/zsh 
echo "Backup-rpms" 
echo "~/build/rpms/rpms-chmod" 
sudo chmod -R 755 /home/glenn/local/Archive/2009.0/ 
sudo chmod -R 755 /home/glenn/local/Archive/2009.1/ 
sudo chmod -R 755 /home/glenn/local/Archive/2010.0/ 
sudo chmod -R 755 /home/glenn/local/Archive/2010.1/ 
date && whoami 
#
Next the script calls for genhdlist2 to recreate the files required for DrakRPM and Smart package data-bases, hdlist.cz
Code:
#! /bin/zsh 
echo "Backup-rpms" 
echo "generating new hdlist.cz for local archives........" 
echo "" 
echo "Backup-rpms" 
echo "generating new hdlist.cz for local archives........" 
# echo "Backup-rpms local/Archive/2009.0/i386" 
# sudo genhdlist2 --xml-info -v --allow-empty-media /home/glenn/local/Archive/2009.0/i386 
# echo "Backup-rpms local/Archive/2009.1/noarch" 
# sudo genhdlist2 --xml-info -v /home/glenn/local/Archive/2009.1/noarch 
# echo "Backup-rpms local/Archive/2009.1/i586" 
# sudo genhdlist2 --xml-info -v /home/glenn/local/Archive/2009.1/i586 
# echo "Backup-rpms local/Archive/2009.1/i586/contrib" 
# sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2009.1/i586/contrib 
# echo "Backup-rpms local/Archive/2009.1/i386" 
# sudo genhdlist2 --xml-info -v --allow-empty-media /home/glenn/local/Archive/2009.1/i386 
# echo "Backup-rpms local/Archive/2009.1/x86_64" 
# sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2009.1/x86_64 
# echo "Backup-rpms local/Archive/2009.1/kde430" 
# sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2009.1/kde430 
# echo "Backup-rpms local/Archive/2009.1/x86_64/contrib" 
# sudo genhdlist2 --xml-info -v /home/glenn/local/Archive/2009.1/x86_64/contrib 
echo "Backup-rpms 2010.0" 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.0/x86_64 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.0/noarch 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.0/i586 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.0/i386 
sudo genhdlist2 --clean --xml-info -v /home/glenn/local/Archive/2010.0/contrib 
#sudo genhdlist2 --clean --xml-info -v
continued over...
Posted in Uncategorized
Views 395 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 09:03 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