Re: DNF and regular expressions

2015-06-30 Thread Germano Massullo
Il 29/06/2015 20:32, Reindl Harald ha scritto:

 that may be true but you hardly can sell DNF as improvement if you
 need such workarounds while YUM worked perfectly for many years while
 working around the package manager in general should be avoided
 because no longs, no dependency solving and no useful confirmation

 given that the dnf autocompletion is also horrible slow comapared with
 YUM i see still no advantages from the change, try yum clTAB
 versus dnf clTAB, in case of DNF it feels like a network request
Then I think we should open some tickets/enhancement requests
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-30 Thread Michael Schwendt
On Mon, 29 Jun 2015 20:32:46 +0200, Reindl Harald wrote:

  I've read the rest of the thread, but note that rpm -qa based queries 
  piped
  to xargs rpm -e still work fine for a package removal task like this
 
 that may be true but you hardly can sell DNF as improvement if you need 
 such workarounds while YUM worked perfectly for many years while working 
 around the package manager in general should be avoided because no 
 longs, no dependency solving and no useful confirmation

Well, it's not me who's trying to sell DNF as improvement. Rather the
opposite. I'm not a fan of it yet. Examples found in various places
on the Internet:

  # dnf whatprovides libtoolize
  Using metadata from Sun Mar 22 23:13:16 2015
  Error: No Matches found

  # yum whatprovides libtoolize
  libtool-2.4.2-32.fc22.x86_64 : The GNU Portable Library Tool
  Repo: fedora
  Matched from:
  Filename: /usr/bin/libtoolize

Or this:

  # dnf search pkg-config
  Last metadata expiration check performed 1:21:31 ago on Tue Jun 30 09:51:23 
2015.
  === N/S Matched: pkg-config 

  rubygem-pkg-config.noarch : A pkg-config implementation by Ruby
  rubygem-pkg-config-doc.noarch : Documentation for rubygem-pkg-config
  mingw32-pkg-config.x86_64 : A tool for determining compilation options for the
: win32 target
  mingw64-pkg-config.x86_64 : A tool for determining compilation options for the
: win64 target
  perl-ExtUtils-PkgConfig.noarch : Simplistic interface to pkg-config
  python-pkgconfig.noarch : A Python interface to the pkg-config command line 
tool
  python3-pkgconfig.noarch : A Python3 interface to the pkg-config command line
   : tool

D'oh! It only examined package name and summary, but the package name
is pkgconfig, and hence it only found irrelevant packages and cannot
be told to search files inside packages. No, dnf search all … only
adds package description and URL to search within.

 given that the dnf autocompletion is also horrible slow comapared with 
 YUM i see still no advantages from the change, try yum clTAB versus 
 dnf clTAB, in case of DNF it feels like a network request

Completion is one of the first things I disable, since it has crept
into tools like a disease and is completely broken for me. Various
bug reports have not been responded to. Completion with yum-builddep
always looks at the repos. Painful.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Ondrej Oprala



On 29.06.2015 12:12, Germano Massullo wrote:

What is wrong with DNF's regular expression
# dnf remove *debuginfo*.fc20.x86_64
? I am on F22 but I have a lot packets that should match that regular
expression, but dnf does not find them.
I also tried to add some escape chars like
dnf remove *\-debuginfo\-*.fc20.x86_64
but the result is the same
I think dnf only supports globbing in this case ... try dnf remove 
'*debuginfo*' to protect the *-s from being

expanded by the shell
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Germano Massullo
Il 29/06/2015 12:18, Ondrej Oprala ha scritto:
 I think dnf only supports globbing in this case ... try dnf remove
 '*debuginfo*' to protect the *-s from being expanded by the shell

# dnf remove '*debuginfo*'
will remove all packages, I need only to remove fc20 debuginfo packages.
# dnf remove '*debuginfo*'.fc20.x86_64
does find anything to remove.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Reindl Harald


Am 29.06.2015 um 12:22 schrieb Germano Massullo:

Il 29/06/2015 12:18, Ondrej Oprala ha scritto:

I think dnf only supports globbing in this case ... try dnf remove
'*debuginfo*' to protect the *-s from being expanded by the shell


# dnf remove '*debuginfo*'
will remove all packages, I need only to remove fc20 debuginfo packages.
# dnf remove '*debuginfo*'.fc20.x86_64
does find anything to remove


dnf remove '*debuginfo*'.fc20.x86_64 is nonsense
you don't stop quoting somewhere in the middle

dnf remove '*debuginfo*.fc20.x86_64'
anyways, it's a terrible regression compared to yum



signature.asc
Description: OpenPGP digital signature
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Germano Massullo
Il 29/06/2015 12:25, Reindl Harald ha scritto:

 dnf remove '*debuginfo*.fc20.x86_64'
 anyways, it's a terrible regression compared to yum
Same result
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Petr Stodulka

On 29.6.2015 12:12, Germano Massullo wrote:

What is wrong with DNF's regular expression
# dnf remove *debuginfo*.fc20.x86_64
? I am on F22 but I have a lot packets that should match that regular
expression, but dnf does not find them.
I also tried to add some escape chars like
dnf remove *\-debuginfo\-*.fc20.x86_64
but the result is the same

May it searches only names of packages instead of rpm names?
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Germano Massullo
Il 29/06/2015 17:05, David Howells ha scritto:
 Germano Massullo germano.massu...@gmail.com wrote:

 What is wrong with DNF's regular expression
 # dnf remove *debuginfo*.fc20.x86_64
 Do you mean 'regular expression' or did you mean 'glob'?

 If you did mean 'regular expression', then did you want:

   dnf remove .*debuginfo.*[.]fc20[.]x86_64

 David
I meant glob, sorry
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Jan Zelený
On 29. 6. 2015 at 12:21:30, Petr Stodulka wrote:
 On 29.6.2015 12:12, Germano Massullo wrote:
  What is wrong with DNF's regular expression
  # dnf remove *debuginfo*.fc20.x86_64
  ? I am on F22 but I have a lot packets that should match that regular
  expression, but dnf does not find them.
  I also tried to add some escape chars like
  dnf remove *\-debuginfo\-*.fc20.x86_64
  but the result is the same
 
 May it searches only names of packages instead of rpm names?

If I understand the documentation[1] correctly, globs are indeed expanded only 
in the name of a package. However, there is a bug[2] open for this. If you 
provide your use case there, it will help prioritizing the bug.

[1] 
http://dnf.readthedocs.org/en/latest/command_ref.html?highlight=glob#specifying-packages
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1199432

Thanks
Jan
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Germano Massullo
Il 29/06/2015 16:28, Jan Zelený ha scritto:
 However, there is a bug[2] open for this. If you provide your use case
 there, it will help prioritizing the bug. [2]
 https://bugzilla.redhat.com/show_bug.cgi?id=1199432
Thank you, I will provide my use case

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread David Howells
Germano Massullo germano.massu...@gmail.com wrote:

 What is wrong with DNF's regular expression
 # dnf remove *debuginfo*.fc20.x86_64

Do you mean 'regular expression' or did you mean 'glob'?

If you did mean 'regular expression', then did you want:

dnf remove .*debuginfo.*[.]fc20[.]x86_64

David
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Toby Goodwin
dnf remove '*debuginfo*'.fc20.x86_64
dnf remove '*debuginfo*.fc20.x86_64'

both mean exactly the same thing, of course.

Reindl you need to revise sh quoting rules (which are admittedly odd,
but this is a simple case).

Toby.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Michael Schwendt
On Mon, 29 Jun 2015 12:12:57 +0200, Germano Massullo wrote:

 What is wrong with DNF's regular expression
 # dnf remove *debuginfo*.fc20.x86_64
 ? I am on F22 but I have a lot packets that should match that regular
 expression, but dnf does not find them.
 I also tried to add some escape chars like
 dnf remove *\-debuginfo\-*.fc20.x86_64
 but the result is the same

I've read the rest of the thread, but note that rpm -qa based queries piped
to xargs rpm -e still work fine for a package removal task like this.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Reindl Harald


Am 29.06.2015 um 20:19 schrieb Michael Schwendt:

On Mon, 29 Jun 2015 12:12:57 +0200, Germano Massullo wrote:


What is wrong with DNF's regular expression
# dnf remove *debuginfo*.fc20.x86_64
? I am on F22 but I have a lot packets that should match that regular
expression, but dnf does not find them.
I also tried to add some escape chars like
dnf remove *\-debuginfo\-*.fc20.x86_64
but the result is the same


I've read the rest of the thread, but note that rpm -qa based queries piped
to xargs rpm -e still work fine for a package removal task like this


that may be true but you hardly can sell DNF as improvement if you need 
such workarounds while YUM worked perfectly for many years while working 
around the package manager in general should be avoided because no 
longs, no dependency solving and no useful confirmation


given that the dnf autocompletion is also horrible slow comapared with 
YUM i see still no advantages from the change, try yum clTAB versus 
dnf clTAB, in case of DNF it feels like a network request




signature.asc
Description: OpenPGP digital signature
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: DNF and regular expressions

2015-06-29 Thread Ahmad Samir
On 29 June 2015 at 20:32, Reindl Harald h.rei...@thelounge.net wrote:
snip

 given that the dnf autocompletion is also horrible slow comapared with YUM i
 see still no advantages from the change, try yum clTAB versus dnf
 clTAB, in case of DNF it feels like a network request


I'd noticed that some time ago too, the easiest (laziest too) solution
I found was to stick this in my /etc/profile.d/custom.sh:
complete -F _yum dnf

I know the _yum completion function(s) probably needs a bit of
tweaking to match all the dnf cli options/syntax but it seems to work
well most of the time for now.

-- 
Ahmad Samir
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct