LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > GlennsPref
User Name
Password

Notices


Rate this Entry

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

Posted 05-12-2010 at 12: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" 
echo 
sudo sh /home/glenn/build/rpms/organise-rpms 
echo "call organise-rpms....." 
echo "Backup-rpms" 
#echo "generating new hdlist.cz for local archives........" 
sudo sh /home/glenn/build/rpms/gen-hdlist2 
echo 
echo "Backup-rpms" 
echo "rebuilding local rpm and file databases... this might take a while ........" 
sudo rpm --rebuilddb && sudo updatedb 
echo 
echo "Backup-rpms" 
echo "local database up to date ........" 
echo 
echo 
sudo sh /home/glenn/build/rpms/update-rpm-database 
echo "run rpm -qa | sort | less > /home/glenn/build/note-rpm-installed-list-`date +%Y-%m-%d-%H`.txt, maybe upto 15kb text."/n 
sudo rpm -qa | sort | less > /home/glenn/build/note-rpm-installed-list-`date +%Y-%m-%d-%H`.txt 
echo "run rpm -Va | grep miss & send to /home/glenn/build/anote-rpm-Va-grep-miss-list-`date +%Y-%m-%d-%H`.txt" 
sudo rpm -Va | grep miss > /home/glenn/build/anote-rpm-Va-grep-miss-list-`date +%Y-%m-%d-%H`.txt 
echo "clean rpm cache" 
sudo smart clean 
sudo rm -rf /var/cache/urpmi/rpms/*rpm 
echo "" 
echo "all repositories are now up to date, any errors? see above!" 
date && whoami
The first thing it does is call organise-rpms from ~/build/rpms...
Code:
sudo sh /home/glenn/build/rpms/organise-rpms
This script finds rpms where they maybe stored by me, and the programs DrakRPM and Smart. (I really like Smart, it is a synaptic-like package manager although it has been changed over the years, and is now much more useful, but harder to hack, like saving the rpms (Grief)).
Posted in Uncategorized
Views 632 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:06 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
Open Source Consulting | Domain Registration