yum localupdate compains arguement list too long

Matthew Miller mattdm at mattdm.org
Wed Dec 6 16:18:14 UTC 2006


On Wed, Dec 06, 2006 at 08:15:08AM -0800, Barry Yu wrote:
> I downloaded and stored all the rpm update packages in folder where I plan
> to use for other new install of Fedora systems so each of them won't need
> to do yum update through Internet.

Well, the real solution here is to also download the metadata needed for
yum and then configure this as your repository rather than using
localupdate. That said....

> When I used yum localupdate /mnt/allrpmupdates/*.rpm, the yum displayed  a
> message "arguement list too long" and then stopped doing anything, when I
> issued yum localupate /mnt/allrpmupdates/a*.rpm , yum started the local
> update and I have to repleat yum localupdate b*.rpm, c*.rpm to z*.rpm.

Use `find /mnt/allrpmupdates/ -name '*.rpm' | xargs yum localupdate` to get
around the shell limitation on argument length.


-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the fedora-list mailing list