LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

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 &&
...
Senior Member
Posted in Uncategorized
Views 411 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 01: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 319 Comments 0 GlennsPref is offline
Old

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

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

Code:
Code:
sudo mv -v /home/glenn/local/Archive/2010.0/i586/*mdv2010.1.i586.rpm /home/glenn/local/Archive/2010.1/i586/ 

echo "cleanup-stagglers" 
sudo mv -v /home/glenn/local/Archive/2010.1/noarch/*2010.1.x86_64.rpm /home/glenn/local/Archive/2010.1/x86_64/ 
sudo mv -v /home/glenn/local/Archive/2010.1/noarch/*2010.1.i586.rpm /home/glenn/local/Archive/2010.1/i586/ 
sudo mv -v /home/glenn/local/Archive/2010.0/noarch/*4.3.8*mdv2010.1.x86_64.rpm /home/glenn/local/Archive/2010.1/kde/
...
Senior Member
Posted in Uncategorized
Views 313 Comments 0 GlennsPref is offline
Old

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

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

Code:
Code:
#! /bin/zsh 
#echo "/home/glenn/build/rpms/organise-rpms" 
echo "organise-rpms" 
echo "Called by, ~/bin/backup-rpms" 
echo "organising saved rpm cache for local archives....." 
#1st Level 

sudo mv -v  /var/cache/urpmi/rpms/*2010.0*rpm /home/glenn/local/Archive/2010.0/noarch/ 
sudo mv -v  /var/cache/urpmi/rpms/*2010.1*rpm /home/glenn/local/Archive/2010.1/noarch/ 

sudo cp
...
Senior Member
Posted in Uncategorized
Views 348 Comments 0 GlennsPref is offline
Old

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

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

Code:
That is all it did.

	Of course to simplify the editing of this script, it calls other scripts that do most of the work,
 and it's still a “work in progress”(wip). It has some text to put up on the screen to give some
 feedback to the user of what stage the process is up to, and although some of them are duplicated in
 the other scrips, it works quite well (IMHO).
Code:
#! /bin/zsh 
#echo "/home/glenn/bin/backup-rpms" 
echo  "/home/glenn/bin/backup-rpms"
...
Senior Member
Posted in Uncategorized
Views 323 Comments 0 GlennsPref is offline

  



All times are GMT -5. The time now is 11:43 AM.

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