Bug 990953 - [rfe] [config] ability to change cachedir
[rfe] [config] ability to change cachedir
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
19
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Ales Kozumplik
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-01 05:29 EDT by Frank Murphy
Modified: 2014-09-30 19:41 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-08-01 06:48:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Frank Murphy 2013-08-01 05:29:40 EDT
Description of problem: Don't know where to change cachedir,
man dnf doesn't provide solution

Currently use a central nfs-based yum server, which downloads pkgs fro all Current Fedora Releases + Rawhide for two main arches.

can I adapt /etc/dnf/dnf.conf with cachedir=/nfs/mount
Comment 1 Frank Murphy 2013-08-01 05:35:58 EDT
SEE ALSO
       · dnf.conf(8), DNF Configuration Reference

man 8 dnf.conf, or man dnf.conf, not in F19

dnf-0.3.9-1.giteff4c49.fc19.noarch
Comment 2 Ales Kozumplik 2013-08-01 06:20:38 EDT
(In reply to Frank Murphy from comment #1)
> SEE ALSO
>        · dnf.conf(8), DNF Configuration Reference
> 
> man 8 dnf.conf, or man dnf.conf, not in F19
> 
> dnf-0.3.9-1.giteff4c49.fc19.noarch

That's right, thanks for catching this. This (unrelated) thing is fixed by 8553056 on master, the confinguration manual will be present starting with dnf-0.3.11.
Comment 3 Ales Kozumplik 2013-08-01 06:33:58 EDT
(In reply to Frank Murphy from comment #0)
> can I adapt /etc/dnf/dnf.conf with cachedir=/nfs/mount

I think that should work. Did you try it?
Comment 4 Frank Murphy 2013-08-01 06:42:26 EDT
I have just done a local test, it works but as I used:
cachedir=/usr/local/cache/dnf/$releasever/$basearch
 
I got following paths created + repos.
/usr/local/cache/dnf/19/i386/i386/19/

so no "$releasever/$basearch" needed in cachedir.
Comment 5 Ales Kozumplik 2013-08-01 06:48:14 EDT
(In reply to Frank Murphy from comment #4)
> I have just done a local test, it works but as I used:
> cachedir=/usr/local/cache/dnf/$releasever/$basearch
>  
> I got following paths created + repos.
> /usr/local/cache/dnf/19/i386/i386/19/
> 
> so no "$releasever/$basearch" needed in cachedir.

That's right, DNF creates per-arch and per-release directories under the specified cachedir, so that's why we can see this.

Closing this as NOTABUG, thank you for reporting the config issue.

Note You need to log in before you can comment on or make changes to this bug.