Re: dnf cache downloading behavior

2017-07-24 Thread Vít Ondruch
Dne 22.7.2017 v 23:26 Neal Gompa napsal(a): > On Sat, Jul 22, 2017 at 5:11 PM, Zbigniew Jędrzejewski-Szmek > wrote: >> On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: >>> On Sat, Jul 22, 2017 at 1:57 PM, Matthew Miller >>> wrote: On Sat, Jul 22, 2017 at 01:42:11PM -0600, Chri

Re: dnf cache downloading behavior

2017-07-23 Thread Richard W.M. Jones
On Sat, Jul 22, 2017 at 01:42:11PM -0600, Chris Murphy wrote: > On Sat, Jul 22, 2017 at 1:03 PM, Matthew Miller > wrote: > > On Sat, Jul 22, 2017 at 11:25:48AM -0600, Chris Murphy wrote: > >> > Here you aren't root so it's not using the same cache, because it can't > >> > write to the root owned c

Re: dnf cache downloading behavior

2017-07-22 Thread J. Randall Owens
On 22/07/17 22:54, Matthew Miller wrote: > On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: >>> I dunno; what harm is there in giving the ability to use a separate >>> user cache for queries? This allows you to do things like repoquery as >>> an unprivileged user for repos that aren't

Re: dnf cache downloading behavior

2017-07-22 Thread Matthew Miller
On Sat, Jul 22, 2017 at 10:02:49PM -0400, Neal Gompa wrote: > > Hmmm -- is it a long-running daemon or is it socket activated? > It's a D-Bus activated service. So, it's like socket activated, except > it occurs when something makes a D-Bus call to the daemon. Err, yes, that's what I meant to type

Re: dnf cache downloading behavior

2017-07-22 Thread Neal Gompa
On Sat, Jul 22, 2017 at 9:05 PM, Matthew Miller wrote: > On Sat, Jul 22, 2017 at 11:36:29PM +, Zbigniew Jędrzejewski-Szmek wrote: >> > So... like dnfdaemon, except with less capabilities? >> Exactly! How do I use dnfdaemon? I only see the raw python and dbus APIS... >> Are there any plans to m

Re: dnf cache downloading behavior

2017-07-22 Thread Matthew Miller
On Sat, Jul 22, 2017 at 11:36:29PM +, Zbigniew Jędrzejewski-Szmek wrote: > > So... like dnfdaemon, except with less capabilities? > Exactly! How do I use dnfdaemon? I only see the raw python and dbus APIS... > Are there any plans to make dnfdaemon a primary method of interacting > with dnf db?

Re: dnf cache downloading behavior

2017-07-22 Thread Chris Murphy
On Sat, Jul 22, 2017 at 3:54 PM, Matthew Miller wrote: > On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: >> > I dunno; what harm is there in giving the ability to use a separate >> > user cache for queries? This allows you to do things like repoquery as >> > an unprivileged user for

Re: dnf cache downloading behavior

2017-07-22 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Jul 22, 2017 at 05:26:55PM -0400, Neal Gompa wrote: > On Sat, Jul 22, 2017 at 5:11 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: > >> On Sat, Jul 22, 2017 at 1:57 PM, Matthew Miller > >> wrote: > >> > On Sat, Jul 22, 2017 at 01:

Re: dnf cache downloading behavior

2017-07-22 Thread Matthew Miller
On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: > > I dunno; what harm is there in giving the ability to use a separate > > user cache for queries? This allows you to do things like repoquery as > > an unprivileged user for repos that aren't enabled by default. > I'm fine with a layer

Re: dnf cache downloading behavior

2017-07-22 Thread Chris Murphy
On Sat, Jul 22, 2017 at 3:26 PM, Neal Gompa wrote: > On Sat, Jul 22, 2017 at 5:11 PM, Zbigniew Jędrzejewski-Szmek > wrote: >> On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: >>> On Sat, Jul 22, 2017 at 1:57 PM, Matthew Miller >>> wrote: >>> > On Sat, Jul 22, 2017 at 01:42:11PM -060

Re: dnf cache downloading behavior

2017-07-22 Thread Neal Gompa
On Sat, Jul 22, 2017 at 5:11 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: >> On Sat, Jul 22, 2017 at 1:57 PM, Matthew Miller >> wrote: >> > On Sat, Jul 22, 2017 at 01:42:11PM -0600, Chris Murphy wrote: >> >> I don't know what things the un

Re: dnf cache downloading behavior

2017-07-22 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Jul 22, 2017 at 02:06:42PM -0600, Chris Murphy wrote: > On Sat, Jul 22, 2017 at 1:57 PM, Matthew Miller > wrote: > > On Sat, Jul 22, 2017 at 01:42:11PM -0600, Chris Murphy wrote: > >> I don't know what things the unprivileged user can do other than > >> search and info. But off hand I'd sa

Re: dnf cache downloading behavior

2017-07-22 Thread Chris Murphy
On Sat, Jul 22, 2017 at 1:57 PM, Matthew Miller wrote: > On Sat, Jul 22, 2017 at 01:42:11PM -0600, Chris Murphy wrote: >> I don't know what things the unprivileged user can do other than >> search and info. But off hand I'd say an unprivileged user should not >> be able to download metadata. Use o

Re: dnf cache downloading behavior

2017-07-22 Thread Matthew Miller
On Sat, Jul 22, 2017 at 01:42:11PM -0600, Chris Murphy wrote: > I don't know what things the unprivileged user can do other than > search and info. But off hand I'd say an unprivileged user should not > be able to download metadata. Use one /var/cache/dnf always. And if > it's stale, just inform th

Re: dnf cache downloading behavior

2017-07-22 Thread Chris Murphy
On Sat, Jul 22, 2017 at 1:03 PM, Matthew Miller wrote: > On Sat, Jul 22, 2017 at 11:25:48AM -0600, Chris Murphy wrote: >> > Here you aren't root so it's not using the same cache, because it can't >> > write to the root owned cache so it creates a temporary cache owned by your >> > user. >> Oh. My.

Re: dnf cache downloading behavior

2017-07-22 Thread Matthew Miller
On Sat, Jul 22, 2017 at 11:25:48AM -0600, Chris Murphy wrote: > > Here you aren't root so it's not using the same cache, because it can't > > write to the root owned cache so it creates a temporary cache owned by your > > user. > Oh. My. God. It makes complete sense, but is also completely > ridicu

Re: dnf cache downloading behavior

2017-07-22 Thread Chris Murphy
On Sat, Jul 22, 2017 at 11:12 AM, Tom Hughes wrote: > On 22/07/17 17:53, Chris Murphy wrote: > >> Is this expected behavior? Or is it a bug? And if it's a bug, how do I >> collect the necessary information for a bug report? This problem >> happens often, but not every day. >> >> [chris@f26h Downlo

Re: dnf cache downloading behavior

2017-07-22 Thread Chris Murphy
Completely mindboggling... $ sudo dnf -v update [sudo] password for chris: Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repograph, repomanage, reposync DNF version: 2.5.1 cachedir: /var/ca

Re: dnf cache downloading behavior

2017-07-22 Thread Tom Hughes
On 22/07/17 17:53, Chris Murphy wrote: Is this expected behavior? Or is it a bug? And if it's a bug, how do I collect the necessary information for a bug report? This problem happens often, but not every day. [chris@f26h Downloads]$ sudo dnf install *rpm Here you are root. And then in anothe

dnf cache downloading behavior

2017-07-22 Thread Chris Murphy
Is this expected behavior? Or is it a bug? And if it's a bug, how do I collect the necessary information for a bug report? This problem happens often, but not every day. [chris@f26h Downloads]$ sudo dnf install *rpm Fedora 26 - x86_64 - Test Updates 534 kB/s | 24 MB 00:46 Fedora 26 - x86_6