[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: yum localupdate compains arguement list too long



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 mattdm org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]