[NTLUG:Discuss] comparing lists

Kyle_Davenport@compusa.com Kyle_Davenport at compusa.com
Tue May 23 09:04:09 CDT 2000


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.

Kyle_Davenport at compusa.com wrote:
>
> for i in `rpm -qa|sed 's/-[0-9].*//`;do grep $i update.list ; done >
> rpm's2update.list
>
> bobby at wrennest.com on 05/22/2000 04:15:08 PM
>
> Please respond to discuss at ntlug.org
>
> To:   "discuss at ntlug.org" <discuss at ntlug.org>
> cc:    (bcc: Kyle Davenport/Is/Corporate/CompUSA)
> Subject:  [NTLUG:Discuss] comparing lists
>
> I have a list of installed rpm's RH6.1 and a list of updated rpm's.
>
> How can I get a list of files in the update list which are also in the
> installed list?
>
> I'm sure there is an easy way to do it. I'm just ignorant.
>
> Thanks
> Bobby
> --
> This tagline is identical to the one you are reading.
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss

--
This tagline is identical to the one you are reading.

_______________________________________________
http://ntlug.org/mailman/listinfo/discuss










More information about the Discuss mailing list