[NTLUG:Discuss] comparing lists

bobby@wrennest.com bobby at wrennest.com
Tue May 23 11:02:47 CDT 2000


After the first command to create rpms2update.list, wc -l shows 89
update.list and 249 rpms2update.list. Items in rpm2update.txt (the
sorted list) have either 2 or 4 instances of each rpm.

We're getting there and I really appreciate the help.

Thanks
Bobby

Kyle_Davenport at compusa.com wrote:
> 
> Sorry, I'm forced to use Lotus Notes at work and it's hard reading the
> punctuation.
> 
> apparentlythe single quote I wanted got stuck in "rpms2update" and I wanted it
> after the // :
> 
> for i in `rpm -qa|sed 's/-[0-9].*//'`;do grep $i update.list ; done >
> rpms2update.list
> 
> then you can go:
> for i in `cat rpm2update.list`;do rpm -Uvh $i ;done
> 
> which will fail for many rpm's because of dependencies the first time thru.  I
> run it several times, then for the failures remaining, I make sure I do in fact
> have all the dependencies (requisite packages), then I add "--nodeps" to the rpm
> commandline and run it one last time.
> 
> there are several packages which will do this automatically for you.
> _________________________________________
> 
> bobby at wrennest.com on 05/22/2000 05:33:11 PM
> 
> Please respond to discuss at ntlug.org
> 
> To:   discuss at ntlug.org
> cc:    (bcc: Kyle Davenport/Is/Corporate/CompUSA)
> Subject:  Re: [NTLUG:Discuss] comparing lists
> 
> The command returns the following:
> 
> bash: command substitution: line 2: syntax error
> 
> I did enter it as one line.
> 
---snip---
-- 
This tagline is identical to the one you are reading.




More information about the Discuss mailing list