You can also change the cache setting to disable caching if you don't want
to bother:
keepcache=0 in /QOpenSys/etc/yum/yum.conf
Kevin Adler
Software Development - PASE, Open Source, IBM i Access ODBC
IBM Systems, Dept 47U
Phone: +1-507-253-5111
Email: kadler@xxxxxxxxxx
015-3 C117
3605 HWY 52 N
Rochester, MN 55901-1407
United States
----- Original message -----
From: Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxx>
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Cc:
Subject: Re: [IBMiOSS] RPM files in /QOpenSys/var/cache/...?
Date: Thu, Aug 2, 2018 12:22 PM
That makes sense.
This came to my attention because our monthly disk space report showed a
number of very large files. If they're retained only to make
reinstallation more convenient, I'll probably remove them. Thank you
-----Original Message-----
From: Aaron Bartell [[1]mailto:aaronbartell@xxxxxxxxx]
Sent: Wednesday, August 01, 2018 12:53 PM
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Subject: Re: [IBMiOSS] RPM files in /QOpenSys/var/cache/...?
>Any idea what the reasoning is? Since there's a setting, it seems
>there
must be reasons for doing it both ways.
It prevents it from needing to be downloaded again. For example, you
could remove git and then reinstall it. It would first check for a
cached version before downloading.
Another situation this would be very useful for is installing into
chroot containers(n1). Unfortunately, yum looks inside of the container
for a cached rpm instead of in the base of PASE/IFS. Well, if you just
created the container then it obviously wouldn't be cached inside of the
container (yet).
n1 - yum --installroot=/QOpenSys/containers/developer1 install git
Aaron Bartell
IBM i hosting, starting at $157/mo litmis.com/spaces
On Wed, Aug 1, 2018 at 12:19 PM Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
wrote:
> I haven't ever been in that file, so that must be the IBM default.
>
> Any idea what the reasoning is? Since there's a setting, it seems
> there must be reasons for doing it both ways.
>
>
> Thanks
>
>
>
> -----Original Message-----
> From: Aaron Bartell [[2]mailto:aaronbartell@xxxxxxxxx]
> Sent: Wednesday, August 01, 2018 9:55 AM
> To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
> Subject: Re: [IBMiOSS] RPM files in /QOpenSys/var/cache/...?
>
> Yes, if your configs says so.
>
> ******[aaron @ KT4001]***[~]
> ******[$]*** cat /QOpenSys/etc/yum/yum.conf
> [main]
> cachedir=/QOpenSys/var/cache/yum
> keepcache=1
> debuglevel=2
> logfile=/QOpenSys/var/log/yum.log
> exactarch=1
> obsoletes=1
>
>
> # PUT YOUR REPOS HERE OR IN separate files named file.repo # in
> /QOpenSys/etc/yum/repos.d
>
>
>
> Aaron Bartell
> IBM i hosting, starting at $157/mo litmis.com/spaces
>
>
>
> On Wed, Aug 1, 2018 at 9:46 AM Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
wrote:
>
> > Is it normal for the RPM files for installed apps to be retained in
> > this dir?
> > /QOpenSys/var/cache/yum/ibm/packages/
> >
> >
> >
> > --
> > This is the IBMi Open Source Roundtable (OpenSource) mailing list To
> > post a message email: OpenSource@xxxxxxxxxxxx To subscribe,
> > unsubscribe, or change list options,
> > visit: [3]
https://lists.midrange.com/mailman/listinfo/opensource
> > or email: OpenSource-request@xxxxxxxxxxxx Before posting, please
> > take a moment to review the archives at
> > [4]
https://archive.midrange.com/opensource.
> >
>
> --
> This is the IBMi Open Source Roundtable (OpenSource) mailing list To
> post a message email: OpenSource@xxxxxxxxxxxx To subscribe,
> unsubscribe, or change list options,
> visit: [5]
https://lists.midrange.com/mailman/listinfo/opensource
> or email: OpenSource-request@xxxxxxxxxxxx Before posting, please take
> a moment to review the archives at
> [6]
https://archive.midrange.com/opensource.
>
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: [7]
https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at [8]
https://archive.midrange.com/opensource.
References
Visible links
1. mailto:aaronbartell@xxxxxxxxx
2. mailto:aaronbartell@xxxxxxxxx
3.
https://lists.midrange.com/mailman/listinfo/opensource
4.
https://archive.midrange.com/opensource
5.
https://lists.midrange.com/mailman/listinfo/opensource
6.
https://archive.midrange.com/opensource
7.
https://lists.midrange.com/mailman/listinfo/opensource
8.
https://archive.midrange.com/opensource
As an Amazon Associate we earn from qualifying purchases.