LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

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

Posted 05-12-2010 at 12:23 AM by GlennsPref

Code:
	Now the reason I written this is because of a sed trick I found that converts the list to
 something urpmi can work with, This process is not completed yet, more things will occur to me as
 time rolls on, 

Code:
#!/bin/zsh 
echo "Create a space-separated-list from top-down list with preceeding chars." 
cd ~/build 

echo "remove old files" 
rm -f ~/build/file2.txt 
rm -f ~/build/file3.txt
...
Senior Member
Posted in Uncategorized
Views 784 Comments 0 GlennsPref is offline
Old

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

Posted 05-12-2010 at 12:22 AM by GlennsPref

Code:
	The next task is to update the external rpm repo data-bases....

Code:
#! /bin/zsh 
#echo "/home/glenn/bin/backup-rpms" 
echo "/home/glenn/build/rpms/update-rpm-database" 
echo  "Called from, ~/bin/backup-rpms" 
echo 
echo 
echo 
echo 
echo "updating urpmi rpm database....." 
echo 
echo 
echo 
#echo "urpmi.update local repos" 
#sudo urpmi.update
...
Senior Member
Posted in Uncategorized
Views 929 Comments 0 GlennsPref is offline
Old

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

Posted 05-12-2010 at 12: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
...
Senior Member
Posted in Uncategorized
Views 399 Comments 0 GlennsPref is offline
Old

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

Posted 05-12-2010 at 12: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 &&
...
Senior Member
Posted in Uncategorized
Views 382 Comments 0 GlennsPref is offline
Old

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

Posted 05-12-2010 at 12:15 AM by GlennsPref

Code:
Code:
sudo mv -v /home/glenn/local/Archive/2010.0/contrib/*.*mnb*.x86_64.rpm /home/glenn/local/Archive/2010.1/x86_64/ 
sudo mv -v /home/glenn/local/Archive/2010.0/noarch/*.*mnb*.x86_64.rpm /home/glenn/local/Archive/2010.1/x86_64/ 
sudo mv -v /home/glenn/local/Archive/2010.0/x86_64/*.*mnb*.x86_64.rpm /home/glenn/local/Archive/2010.1/x86_64/ 
sudo mv -v /home/glenn/local/Archive/2010.1/noarch/*.*mnb*.x86_64.rpm /home/glenn/local/Archive/2010.1/x86_64/ 
sudo mv
...
Senior Member
Posted in Uncategorized
Views 295 Comments 0 GlennsPref is offline

  



All times are GMT -5. The time now is 02:59 PM.

Main Menu
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