Re: Poll: How users use DNF

2014-12-17 Thread Lukas Zapletal
Going to chip in with:

/usr/bin/yum -d 0 -e 0 -y install PACKAGE

This is what default Fedora package provider does in Puppet.

-- 
Later,
 Lukas #lzap Zapletal
-- 
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: Poll: How users use DNF

2014-12-13 Thread Hedayat Vatankhah




/*Radek Holy rh...@redhat.com*/ wrote on Tue, 9 Dec 2014 12:28:54 
-0500 (EST):

Dear users of YUM and DNF,

I'm writing to you regarding a request for your feedback. I would be very grateful if you could 
send me a brief description of how you use YUM or DNF currently or how would you like to use it. I 
am particularly interested in the occurrences of dnf/yum install calls in your scripts. 
What does these scripts do and what do they expect when they call the install command 
in different situations?

Please share with me the use cases, not the description of the install 
command. Think twice before you share something because I believe it's not as easy as it 
might seem. As an example I think it might be something like:

- I call YUM install, because I want to get given packages into my system and I 
don't care whether it requires an upgrade or downgrade or what. or
- I want to get them there but it should protect me against dangerous operations 
like downgrades or
- I often make typos, so I expect that the program knows what I mean or
- it would be nice if it would literally perform the installation; if any of the 
packages cannot be installed because of any reason, it should fail.

Not something like: that's obvious that the install command should never downgrade 
packages.

Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not on 
the command's name as it might also result in a new command (while preserving 
the well-known install command together with an appropriate behaviour).

I don't mind if you send it offlist (or to another list). I think there is no 
need to comment on anyone's use case. Every case is valid. Just not every case 
can be supported.

Thank you very much in advance.
1. There are many cases that I want to install a package, but I don't 
care if it is the latest version available in the repos. So, I use '-C' 
regularly (currently doesn't work with yum, so I use dnf when I want to 
use -C to install a package without updating metadata).
2. I don't want dnf/yum/(any other software) to download data from 
internet at random times. If it wants to do it, it should do it on the 
networks I allowed, at the times I allowed. Not just when 'it can'.
3. When I want to install a package, I usually 'want' it. So, if it 
requires downgrade, I might be OK with it. I'd love to see a proposal 
with downgrades rather than saying that sorry, this package cannot be 
installed.
4. When I ask it to install some packages, I usually want it to do it 
with minimal downloads. I don't want it to update its dependencies if 
they are already installed, unless it is strictly necessary to install 
the package. Even in that case, I'd love to be able to tell the package 
manager (e.g. using a new command, or using an option to the install 
command) to install an older version of the package so that its 
dependencies doesn't need updating (instead of updating the dependencies 
to install the latest version, install an older version which matches 
the dependencies I've already got installed).


Regards,
Hedayat

-- 
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: Poll: How users use DNF

2014-12-12 Thread Miroslav Suchý
On 12/11/2014 05:39 PM, Matthew Miller wrote:
 On Thu, Dec 11, 2014 at 05:15:25PM +0100, Miroslav Suchý wrote:
  I quite often start new instances from images in Cloud (either
  OpenStack or EC2) and do yum upgrade. But because root partition is
  very limited (e.g. 3GB) and yum upgrade needs XX MB of additional
  space I need to manually run:
 Hmmm — are you doing this on purpose or is growpart not working for
 you?

On purpose. Why should I create VM with 5+GB root partition when 3GB is more 
then enough? Of course enough but the
initial upgrade.
If you have to pay for provisioned storage then it matters. And I would use 
that storage only first hour of that VM and
then it will never be utilized.

Amazon price is:
  $0.05 - $0.08 per GB-month of provisioned storage (cheapest magnetic storage, 
the SSD costs even more)
It seems to be small. But times it by few GB, by dozen machines and it will 
grow quite fast.

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
-- 
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: Poll: How users use DNF

2014-12-11 Thread Richard W.M. Jones
On Thu, Dec 11, 2014 at 12:03:58AM +0400, Igor Gnatenko wrote:
 On Wed, Dec 10, 2014 at 9:05 PM, Richard W.M. Jones rjo...@redhat.com wrote:
  On Wed, Dec 10, 2014 at 05:56:43PM +, Richard W.M. Jones wrote:
  I found your email a bit confusing, so hopefully this is what you
  are after:
 
  (1) virt-builder --install is implemented using 'yum install'
 
  (2) virt-customize --install is implemented using 'yum install'
 
  More precisely it's 'yum -y install list of packages...'
 
  I forgot: There is also an --update flag for both of these
  commands, currently implemented using 'yum -y update'.
 yes, you can. you can also do this via dnf API ;)

It's unlikely to work for libguestfs though, since we're running those
commands in the context of a guest where we have little or no control
over what software is installed.  (Especially for virt-customize)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
-- 
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: Poll: How users use DNF

2014-12-11 Thread Ian Malone
On 9 December 2014 at 17:28, Radek Holy rh...@redhat.com wrote:
 Dear users of YUM and DNF,

 I'm writing to you regarding a request for your feedback. I would be very 
 grateful if you could send me a brief description of how you use YUM or DNF 
 currently or how would you like to use it. I am particularly interested in 
 the occurrences of dnf/yum install calls in your scripts. What does these 
 scripts do and what do they expect when they call the install command in 
 different situations?

 Please share with me the use cases, not the description of the install 
 command. Think twice before you share something because I believe it's not as 
 easy as it might seem. As an example I think it might be something like:


Hi,

I do different things at home (Fedora) and work (RHEL). At work our
system administrator uses satellite to push out changes (as a result
no scripting of yum), but as I do building and testing of things I
need to be able to install packages and often while maintaining
existing versions, so things will usually go:
1. yum install foo-devel
2. If offered a foo-devel with update to foo and various dependencies,
say no, if no updates then say no.
3. Copy current version of package and attempt with that appended,
e.g. yum install mesa-libGLU-devel-7.11
In the single example of a -devel package I could short circuit this
by doing an rpm -q on the base package first, but in some cases you're
installing completely new libraries, in which case offered updates
mean using
yum search --showduplicates
to find earlier available versions. Don't do this often enough to have
looked into more efficient ways of doing it, since it's not that time
consuming if the things actually exist.

Home, usually just the regular user stuff of making sure packages are
most recent. Occasionally downgrading or installing things from koji
when working with bugs.

-- 
imalone
http://ibmalone.blogspot.co.uk
-- 
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: Poll: How users use DNF

2014-12-11 Thread Richard W.M. Jones
On Wed, Dec 10, 2014 at 02:20:32PM -0800, Samuel Sieb wrote:
 On 12/10/2014 02:09 PM, Marcin Juszkiewicz wrote:
 I am using web proxy on Synology NAS at home and all my Fedora machines
 use it for dnf/yum fetching. With on-disk cache set to 10GB it makes all
 system upgrades and mock builds very fast.
 
 How does the proxy work with the various mirrors?  Do you have
 client side settings to deal with that?
 
 I wrote my own proxy in python that is specifically for yum and
 matches filenames from any url.  It's quite a hack and fails once in
 a while, but it saves me a huge amount of time and bandwidth with
 the large amount of Fedora computers I manage.  I suppose I could
 mirror the whole thing locally, but this way I only download the
 packages I need as I need them.

This is definitely a thing which is needed.

Also:

http://rwmj.wordpress.com/2013/09/09/half-baked-idea-content-addressable-web-proxy/#content

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
-- 
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: Poll: How users use DNF

2014-12-11 Thread Dan Horák
On Wed, 10 Dec 2014 14:20:32 -0800
Samuel Sieb sam...@sieb.net wrote:

 On 12/10/2014 02:09 PM, Marcin Juszkiewicz wrote:
  I am using web proxy on Synology NAS at home and all my Fedora
  machines use it for dnf/yum fetching. With on-disk cache set to
  10GB it makes all system upgrades and mock builds very fast.
 
 How does the proxy work with the various mirrors?  Do you have client 
 side settings to deal with that?
 
 I wrote my own proxy in python that is specifically for yum and
 matches filenames from any url.  It's quite a hack and fails once in
 a while, but it saves me a huge amount of time and bandwidth with the
 large amount of Fedora computers I manage.  I suppose I could mirror
 the whole thing locally, but this way I only download the packages I
 need as I need them.

http://sharkcz.livejournal.com/2534.html


Dan

-- 
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: Poll: How users use DNF

2014-12-11 Thread Miroslav Suchý
On 12/09/2014 06:28 PM, Radek Holy wrote:
 Dear users of YUM and DNF,
 
 I'm writing to you regarding a request for your feedback. I would be very 
 grateful if you could send me a brief description of how you use YUM or DNF 
 currently or how would you like to use it. I am particularly interested in 
 the occurrences of dnf/yum install calls in your scripts. What does these 
 scripts do and what do they expect when they call the install command in 
 different situations?
 
 Please share with me the use cases, not the description of the install 
 command. Think twice before you share something because I believe it's not as 
 easy as it might seem. As an example I think it might be something like:
 
 - I call YUM install, because I want to get given packages into my system 
 and I don't care whether it requires an upgrade or downgrade or what. or
 - I want to get them there but it should protect me against dangerous 
 operations like downgrades or
 - I often make typos, so I expect that the program knows what I mean or
 - it would be nice if it would literally perform the installation; if any of 
 the packages cannot be installed because of any reason, it should fail.
 
 Not something like: that's obvious that the install command should never 
 downgrade packages.
 
 Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not on 
 the command's name as it might also result in a new command (while preserving 
 the well-known install command together with an appropriate behaviour).
 
 I don't mind if you send it offlist (or to another list). I think there is no 
 need to comment on anyone's use case. Every case is valid. Just not every 
 case can be supported.
 
 Thank you very much in advance.
 


I quite often start new instances from images in Cloud (either OpenStack or 
EC2) and do yum upgrade. But because root
partition is very limited (e.g. 3GB) and yum upgrade needs XX MB of 
additional space I need to manually run:
  yum install foo
  yum install bar
with several packages, which does not have too much deps and repeat it until
  yum upgrade
finally fit the free space.

If I can have dnf upgrade-in-chunks I would be very happy.
https://bugzilla.redhat.com/show_bug.cgi?id=1032541

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
-- 
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: Poll: How users use DNF

2014-12-11 Thread Miroslav Suchý
On 12/11/2014 12:56 PM, Dan Horák wrote:
 On Wed, 10 Dec 2014 14:20:32 -0800
 Samuel Sieb sam...@sieb.net wrote:
 
 On 12/10/2014 02:09 PM, Marcin Juszkiewicz wrote:
 I am using web proxy on Synology NAS at home and all my Fedora
 machines use it for dnf/yum fetching. With on-disk cache set to
 10GB it makes all system upgrades and mock builds very fast.

 How does the proxy work with the various mirrors?  Do you have client 
 side settings to deal with that?

 I wrote my own proxy in python that is specifically for yum and
 matches filenames from any url.  It's quite a hack and fails once in
 a while, but it saves me a huge amount of time and bandwidth with the
 large amount of Fedora computers I manage.  I suppose I could mirror
 the whole thing locally, but this way I only download the packages I
 need as I need them.
 
 http://sharkcz.livejournal.com/2534.html

Some variables for squid, which we used in Spacewalk Proxy and you can find it 
useful:

# Average object size, used to estimate number of objects your
# cache can hold.  The default is 13 KB.
# I done the calculation across all RHEL package we had in DB several years ago
store_avg_object_size 817 KB

# rpm will hardly ever change, force to chache it for very long time
refresh_pattern  \.rpm$  10080 100% 525960 override-expire override-lastmod 
ignore-reload reload-into-ims
refresh_pattern .   0   100%525960

# if transport is canceled, finish downloading anyway
quick_abort_pct -1
quick_abort_min -1 KB

# when range is required, download whole file anyway
# when we request rpm header, we will nearly always get
# request for the rest of the file
range_offset_limit -1 KB

# we download only from 1 server, default is 1024
# which is too much for us
fqdncache_size 4


And of course, it is good idea to tune this according your HW:
cache_mem 400 MB
maximum_object_size 200 MB
maximum_object_size_in_memory 1024 KB
# Size should be about 60% of your free space
cache_dir ufs /var/spool/squid 15000 16 256


-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
-- 
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: Poll: How users use DNF

2014-12-11 Thread Matthew Miller
On Thu, Dec 11, 2014 at 05:15:25PM +0100, Miroslav Suchý wrote:
 I quite often start new instances from images in Cloud (either
 OpenStack or EC2) and do yum upgrade. But because root partition is
 very limited (e.g. 3GB) and yum upgrade needs XX MB of additional
 space I need to manually run:

Hmmm — are you doing this on purpose or is growpart not working for
you?

-- 
Matthew Miller
mat...@fedoraproject.org
Fedora Project Leader
-- 
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: Poll: How users use DNF

2014-12-11 Thread Samuel Sieb

On 12/11/2014 02:57 AM, Richard W.M. Jones wrote:

This is definitely a thing which is needed.

Also:

http://rwmj.wordpress.com/2013/09/09/half-baked-idea-content-addressable-web-proxy/#content

I did read that.  It's one step beyond what I have, but how does the 
hash get sent?  The client would need to be modified (yum plugin?) to 
send the hash.


My proxy is actually pretty effective as it is.  It just needs to be a 
bit more robust about slow or stuck connections.

--
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: Poll: How users use DNF

2014-12-11 Thread Richard W.M. Jones
On Thu, Dec 11, 2014 at 09:06:46AM -0800, Samuel Sieb wrote:
 On 12/11/2014 02:57 AM, Richard W.M. Jones wrote:
 This is definitely a thing which is needed.
 
 Also:
 
 http://rwmj.wordpress.com/2013/09/09/half-baked-idea-content-addressable-web-proxy/#content
 
 I did read that.  It's one step beyond what I have, but how does the
 hash get sent?  The client would need to be modified (yum plugin?)
 to send the hash.

Yes, it does require a modified client.

Yum already has the hash information - there are sha256 checksums of
the RPMs in the primary XML metadata.  Yum just needs to send them in
the HTTP request.  So I'm assuming the modifications are fairly
simple.  (Not actually have done them or tried to do them of course!)

 My proxy is actually pretty effective as it is.  It just needs to be
 a bit more robust about slow or stuck connections.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
-- 
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: Poll: How users use DNF

2014-12-11 Thread Kevin Kofler
Radek Holy wrote:
 I'm writing to you regarding a request for your feedback. I would be very
 grateful if you could send me a brief description of how you use YUM or
 DNF currently or how would you like to use it.

One thing I do twice a year, whenever I upgrade to a new Fedora release, is 
to first run this in graphical mode:
yum --releasever=n+1 --downloadonly distro-sync
and then this in text mode:
yum --releasever=n+1 -C distro-sync

The important feature there is --downloadonly. It is essential to make this 
work.

Without --downloadonly, I'd have to run the whole thing in text mode, which:
1. forces me off the desktop environment for the whole download time, and
2. works at all only if the network is accessible in text-mode, which is
   only the case if the credentials are stored systemwide in NM and not in
   KWallet (or gnome-keyring for that matter).

Kevin Kofler

-- 
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: Poll: How users use DNF

2014-12-10 Thread Sudhir Khanger
On Tuesday, December 09, 2014 12:28:54 PM Radek Holy wrote:
 I would be very grateful if you could send me a brief description of how you
 use YUM or DNF currently or how would you like to use it.

DNF doesn't work with local repositories created via createrepo or yum-plugin-
local. It is one of the reasons I can't use DNF at all. I would hope that DNF 
would support local repositories before Fedora adopts it as an official 
package management tool. Here is the bug report[1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=991014

-- 
Regards,
Sudhir Khanger,
sudhirkhanger.com,
github.com/donniezazen,
5577 8CDB A059 085D 1D60  807F 8C00 45D9 F5EF C394.

signature.asc
Description: This is a digitally signed message part.
-- 
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: Poll: How users use DNF

2014-12-10 Thread Petr Spacek
On 9.12.2014 18:28, Radek Holy wrote:
 Dear users of YUM and DNF,
 
 I'm writing to you regarding a request for your feedback. I would be very 
 grateful if you could send me a brief description of how you use YUM or DNF 
 currently or how would you like to use it. I am particularly interested in 
 the occurrences of dnf/yum install calls in your scripts. What does these 
 scripts do and what do they expect when they call the install command in 
 different situations?
 
 Please share with me the use cases, not the description of the install 
 command. Think twice before you share something because I believe it's not as 
 easy as it might seem. As an example I think it might be something like:
 
 - I call YUM install, because I want to get given packages into my system 
 and I don't care whether it requires an upgrade or downgrade or what. or
 - I want to get them there but it should protect me against dangerous 
 operations like downgrades or
 - I often make typos, so I expect that the program knows what I mean or
 - it would be nice if it would literally perform the installation; if any of 
 the packages cannot be installed because of any reason, it should fail.
 
 Not something like: that's obvious that the install command should never 
 downgrade packages.
 
 Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not on 
 the command's name as it might also result in a new command (while preserving 
 the well-known install command together with an appropriate behaviour).
 
 I don't mind if you send it offlist (or to another list). I think there is no 
 need to comment on anyone's use case. Every case is valid. Just not every 
 case can be supported.
 
 Thank you very much in advance.
 

Hello,

my use cases are developer-oriented:

1) I need ability to install *precise* versions of packages. Typically this is
caused by need to examine coredump file received from a user.

Install command in yum behaves weirdly, there are all sorts of weird corner
cases where yum install foo-2:3.4.5-666 bar-1:2.3-4 fails for some reason.

Imagine this situation:
- I always start with clean Fedora VM snapshot created a week (or month :-)
ago. It would be waste of bandwidth and time to reinstall it the every day.
- I copypaste list of package from bug report to command line - it results in
command line:
$ yum install foo-2:3.4.5-666 bar-1:2.3-4

In this scenario, it could happen that package foo needs upgrade (because the
VM snapshot is 1 week old) and package bar needs downgrade at the same time
(because user who reported the bug did not upgrade bar package for whatever
reason).

In my opinion, if 'install' command receives N(E)VR specification then it
should respect it even if it means downgrade. And it should *scream* if it is
not possible install requested package version!

I'm not sure if there is a conflict with other requirements you received,
maybe I'm asking for dnf install-what-I-typed-in command :-)


2) Installing locally built RPMs:
I often rebuild packages with minimal changes, e.g. just with different CFLAGS
but with no changes to the actual source.

I get my new shiny packages in ~/rpmbuild
but
$ yum install ~/rpmbuild/RPMS/*/*
often fails to install them because system has newer or the same version of
the package installed already.

In this specific case, where yum install gets RPMs as parameters (instead of
names from repo) it should (re)install them even if it means downgrade.


3) Upgrading/Reinstalling locally built packages.
In cases where rebuild yields lots of packages it is handy to have ability to
reinstall/upgrade/downgrade only packages which are installed at the moment.

E.g. bind src rpm produces 15 different packages but my test system has only 8
of them installed. In this case running
$ yum install ~/rpmbuild/RPMS/*/*
is not useful because I would install a lot of unnecessary packages (which can
be sometime conflicting with others).

I would be happy if
$ yum reinstall ~/rpmbuild/RPMS/*/*
reinstalled/upgradeed/downgraded only packages which are actually installed
and ignored the rest.

Maybe it is a case for dnf reinstall-what-I-typed-in command.

Thank you for listening and have a nice day!

-- 
Petr^2 Spacek
-- 
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: Poll: How users use DNF

2014-12-10 Thread Petr Spacek
On 10.12.2014 10:14, Petr Spacek wrote:
 On 9.12.2014 18:28, Radek Holy wrote:
 Dear users of YUM and DNF,

 I'm writing to you regarding a request for your feedback. I would be very 
 grateful if you could send me a brief description of how you use YUM or DNF 
 currently or how would you like to use it. I am particularly interested in 
 the occurrences of dnf/yum install calls in your scripts. What does these 
 scripts do and what do they expect when they call the install command in 
 different situations?

 Please share with me the use cases, not the description of the install 
 command. Think twice before you share something because I believe it's not 
 as easy as it might seem. As an example I think it might be something like:

 - I call YUM install, because I want to get given packages into my system 
 and I don't care whether it requires an upgrade or downgrade or what. or
 - I want to get them there but it should protect me against dangerous 
 operations like downgrades or
 - I often make typos, so I expect that the program knows what I mean or
 - it would be nice if it would literally perform the installation; if any 
 of the packages cannot be installed because of any reason, it should fail.

 Not something like: that's obvious that the install command should never 
 downgrade packages.

 Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not on 
 the command's name as it might also result in a new command (while 
 preserving the well-known install command together with an appropriate 
 behaviour).

 I don't mind if you send it offlist (or to another list). I think there is 
 no need to comment on anyone's use case. Every case is valid. Just not every 
 case can be supported.

 Thank you very much in advance.

 
 Hello,
 
 my use cases are developer-oriented:
 
 1) I need ability to install *precise* versions of packages. Typically this is
 caused by need to examine coredump file received from a user.
 
 Install command in yum behaves weirdly, there are all sorts of weird corner
 cases where yum install foo-2:3.4.5-666 bar-1:2.3-4 fails for some reason.
 
 Imagine this situation:
 - I always start with clean Fedora VM snapshot created a week (or month :-)
 ago. It would be waste of bandwidth and time to reinstall it the every day.
 - I copypaste list of package from bug report to command line - it results in
 command line:
 $ yum install foo-2:3.4.5-666 bar-1:2.3-4
 
 In this scenario, it could happen that package foo needs upgrade (because the
 VM snapshot is 1 week old) and package bar needs downgrade at the same time
 (because user who reported the bug did not upgrade bar package for whatever
 reason).
 
 In my opinion, if 'install' command receives N(E)VR specification then it
 should respect it even if it means downgrade. And it should *scream* if it is
 not possible install requested package version!
 
 I'm not sure if there is a conflict with other requirements you received,
 maybe I'm asking for dnf install-what-I-typed-in command :-)
 
 
 2) Installing locally built RPMs:
 I often rebuild packages with minimal changes, e.g. just with different CFLAGS
 but with no changes to the actual source.
 
 I get my new shiny packages in ~/rpmbuild
 but
 $ yum install ~/rpmbuild/RPMS/*/*
 often fails to install them because system has newer or the same version of
 the package installed already.
 
 In this specific case, where yum install gets RPMs as parameters (instead of
 names from repo) it should (re)install them even if it means downgrade.
 
 
 3) Upgrading/Reinstalling locally built packages.
 In cases where rebuild yields lots of packages it is handy to have ability to
 reinstall/upgrade/downgrade only packages which are installed at the moment.
 
 E.g. bind src rpm produces 15 different packages but my test system has only 8
 of them installed. In this case running
 $ yum install ~/rpmbuild/RPMS/*/*
 is not useful because I would install a lot of unnecessary packages (which can
 be sometime conflicting with others).
 
 I would be happy if
 $ yum reinstall ~/rpmbuild/RPMS/*/*
 reinstalled/upgradeed/downgraded only packages which are actually installed
 and ignored the rest.
 
 Maybe it is a case for dnf reinstall-what-I-typed-in command.

Oh, I forgot to one more use case/plugin.

4) Fedora does not store old versions of packages in repo so I often have to
go to Koji and download older rpms from there.

A koji-repo plugin (in combination with install-what-I-typed-in command
described above) would be awesome thing to have: Just copypaste list of RPMs
from bug report and get all of them installed in one sweep!

 Thank you for listening and have a nice day!

-- 
Petr^2 Spacek
-- 
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: Poll: How users use DNF

2014-12-10 Thread Kevin Kofler
Petr Spacek wrote:
 I would be happy if
 $ yum reinstall ~/rpmbuild/RPMS/*/*
 reinstalled/upgradeed/downgraded only packages which are actually
 installed and ignored the rest.

In this case, you should be able to just use rpm -Fvh. (I assume the 
dependencies are already installed, which is likely to be the case if you 
already have a different version of the same package.)

Kevin Kofler

-- 
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: Poll: How users use DNF

2014-12-10 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Dec 10, 2014 at 02:32:35PM +0100, Kevin Kofler wrote:
 Petr Spacek wrote:
  I would be happy if
  $ yum reinstall ~/rpmbuild/RPMS/*/*
  reinstalled/upgradeed/downgraded only packages which are actually
  installed and ignored the rest.
 
 In this case, you should be able to just use rpm -Fvh. (I assume the 
 dependencies are already installed, which is likely to be the case if you 
 already have a different version of the same package.)
I use rpm -Fvh too, but it's not always convenient. It'll only install
*newer* packages, and it will not install dependencies. E.g. for python
packages, dependencies often do not have to be installed during build,
so even if building a package, not everything required for installation
is there.

Zbyszek
-- 
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: Poll: How users use DNF

2014-12-10 Thread Daniel P. Berrange
On Tue, Dec 09, 2014 at 12:28:54PM -0500, Radek Holy wrote:
 Please share with me the use cases, not the description of the install
 command. Think twice before you share something because I believe it's
 not as easy as it might seem. As an example I think it might be something
 like:
 
 - I call YUM install, because I want to get given packages into my system
and I don't care whether it requires an upgrade or downgrade or what. or
 - I want to get them there but it should protect me against dangerous
operations like downgrades or
 - I often make typos, so I expect that the program knows what I mean or
 - it would be nice if it would literally perform the installation; if any
of the packages cannot be installed because of any reason, it should fail.

OpenStack's  devstack.sh deployment script makes use of YUM for two
core tasks.

First it wants to ensure a set of packages exist on the host and wants
to see an error exit status if any of the packages requested are not
present after the command completes. Currently it uses 'install' for
this but has to grep stderr for No package to see if YUM claimed
success when it in fact failed to install some of the packages [1].

Second it wants to be able to be to ensure a package is not present
on a server. ie if the package is not installed currently that's fine,
but if it is installed it must be removed. It wants to have an error
status only if the package is installed and cannot be removed.

In both cases it needs to operate non-interactively with no user
prompting.

Regards,
Daniel

[1] https://bugzilla.redhat.com/show_bug.cgi?id=965567
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|
-- 
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: Poll: How users use DNF

2014-12-10 Thread Orion Poplawski
On 12/09/2014 05:48 PM, Oron Peled wrote:
 OK, this isn't a direct DNF/YUM item, but still...
 
 I have several workstations/laptops with the same Fedora version (currently 
 20):
  * Downloading the same RPM's/DRPM's for each of these hosts is a huge waste.
  * OTOH, I haven't found a no-brainer yum-proxy (a-la Debian's apt-proxy
or apt-cacher-ng)

FWIW - I still use InstantMirror, despite its warts:

https://github.com/opoplawski/InstantMirror

-- 
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane   or...@nwra.com
Boulder, CO 80301   http://www.nwra.com
-- 
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: Poll: How users use DNF

2014-12-10 Thread Richard W.M. Jones
I found your email a bit confusing, so hopefully this is what you
are after:

(1) virt-builder --install is implemented using 'yum install'

(2) virt-customize --install is implemented using 'yum install'

For (1) and (2) I intend to replace yum with dnf when the guest
version is Fedora = 22 (or 23?)

(3) virt-v2v uses 'yum install' and 'yum resolvedep' both for very
complicated reasons.  It may be best just to read the source:

https://github.com/libguestfs/libguestfs/blob/master/v2v/convert_linux.ml

(4) supermin uses yumdownloader.  We would like to replace it with
'dnf download' except that it is broken (RHBZ#1157233).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
-- 
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: Poll: How users use DNF

2014-12-10 Thread Richard W.M. Jones
On Wed, Dec 10, 2014 at 06:04:00AM +0100, Kevin Kofler wrote:
 Przemek Klosowski wrote:
  I have mixed feelings for the typo correction/suggestions for arguments
  providing package names: I am glad they are case-insensitive because
  case conventions in package names are all over the place. On the other
  hand I am concerned about possible mistakes (I want to 'install foo' but
  mistype it as 'boo' and end up installing 'bugaboo').
 
 Indeed, autocorrection should never be done without confirmation (and in 
 non-interactive mode (dnf -y), it should probably just fail). It's just 
 too likely to accidentally give the wrong answer.

There should definitely be the equivalent of 'dnf --do-exactly-what-i-say'
so that we can use it from scripts and programs.

Also (as yum is not careful about this):

 - Always send errors to stderr and ordinary output to stdout

 - Return a non-zero exit code on failure

 - Make sure ^C works

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
-- 
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: Poll: How users use DNF

2014-12-10 Thread Richard W.M. Jones
On Wed, Dec 10, 2014 at 05:56:43PM +, Richard W.M. Jones wrote:
 I found your email a bit confusing, so hopefully this is what you
 are after:
 
 (1) virt-builder --install is implemented using 'yum install'
 
 (2) virt-customize --install is implemented using 'yum install'

More precisely it's 'yum -y install list of packages...'

I forgot: There is also an --update flag for both of these
commands, currently implemented using 'yum -y update'.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
-- 
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: Poll: How users use DNF

2014-12-10 Thread Igor Gnatenko
On Wed, Dec 10, 2014 at 9:05 PM, Richard W.M. Jones rjo...@redhat.com wrote:
 On Wed, Dec 10, 2014 at 05:56:43PM +, Richard W.M. Jones wrote:
 I found your email a bit confusing, so hopefully this is what you
 are after:

 (1) virt-builder --install is implemented using 'yum install'

 (2) virt-customize --install is implemented using 'yum install'

 More precisely it's 'yum -y install list of packages...'

 I forgot: There is also an --update flag for both of these
 commands, currently implemented using 'yum -y update'.
yes, you can. you can also do this via dnf API ;)

 Rich.

 --
 Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
 Read my programming and virtualization blog: http://rwmj.wordpress.com
 virt-builder quickly builds VMs from scratch
 http://libguestfs.org/virt-builder.1.html
 --
 devel mailing list
 devel@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/devel
 Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct



-- 
-Igor Gnatenko
-- 
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: Poll: How users use DNF

2014-12-10 Thread Marcin Juszkiewicz
W dniu 10.12.2014 o 01:48, Oron Peled pisze:
 I have several workstations/laptops with the same Fedora version (currently 
 20):
  * Downloading the same RPM's/DRPM's for each of these hosts is a huge waste.

I am using web proxy on Synology NAS at home and all my Fedora machines
use it for dnf/yum fetching. With on-disk cache set to 10GB it makes all
system upgrades and mock builds very fast.

Used apt-cacher-ng before went to Fedora. Still miss it. Especially
connected with 'check-for-aptcacherng-over-avahi' plugin.
-- 
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: Poll: How users use DNF

2014-12-10 Thread Samuel Sieb

On 12/10/2014 02:09 PM, Marcin Juszkiewicz wrote:

I am using web proxy on Synology NAS at home and all my Fedora machines
use it for dnf/yum fetching. With on-disk cache set to 10GB it makes all
system upgrades and mock builds very fast.

How does the proxy work with the various mirrors?  Do you have client 
side settings to deal with that?


I wrote my own proxy in python that is specifically for yum and matches 
filenames from any url.  It's quite a hack and fails once in a while, 
but it saves me a huge amount of time and bandwidth with the large 
amount of Fedora computers I manage.  I suppose I could mirror the whole 
thing locally, but this way I only download the packages I need as I 
need them.

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

Poll: How users use DNF

2014-12-09 Thread Radek Holy
Dear users of YUM and DNF,

I'm writing to you regarding a request for your feedback. I would be very 
grateful if you could send me a brief description of how you use YUM or DNF 
currently or how would you like to use it. I am particularly interested in the 
occurrences of dnf/yum install calls in your scripts. What does these scripts 
do and what do they expect when they call the install command in different 
situations?

Please share with me the use cases, not the description of the install 
command. Think twice before you share something because I believe it's not as 
easy as it might seem. As an example I think it might be something like:

- I call YUM install, because I want to get given packages into my system and 
I don't care whether it requires an upgrade or downgrade or what. or
- I want to get them there but it should protect me against dangerous 
operations like downgrades or
- I often make typos, so I expect that the program knows what I mean or
- it would be nice if it would literally perform the installation; if any of 
the packages cannot be installed because of any reason, it should fail.

Not something like: that's obvious that the install command should never 
downgrade packages.

Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not on 
the command's name as it might also result in a new command (while preserving 
the well-known install command together with an appropriate behaviour).

I don't mind if you send it offlist (or to another list). I think there is no 
need to comment on anyone's use case. Every case is valid. Just not every case 
can be supported.

Thank you very much in advance.
-- 
Radek Holý
Associate Software Engineer
Software Management Team
Red Hat Czech
-- 
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: Poll: How users use DNF

2014-12-09 Thread Jon Kent
Hi,

We use yum wrapped up in a python script that runs from a master server and
uses ssh to log into server/servers and run the requested command (the
script doesn't support all, just most -install, downgrade, upgrade etc)
against either a single rpm or upgrade all rpms.  It uses the exit status
from yum to catch errors, log them and either move to the next server or
exit (which is an option to the script).

For the more dangerous yum actions (such as downgrade, remove etc) the
script ask for verification by generating a random number and requesting
you input it (basic yes/no leads to auto typing).

Ideally I'd like this to be a part of dnf or yum suite so that I don't have
to run write a script to perform this.  As we look after 100s of servers,
having the ability to do this has saved large amounts of time for us.
Since I wrote the original (a bash script originally) 10 years ago this is
used globally internally and our SAs expect this to be there and can't
imagine managing our server farms without.  Therefore I strong believe this
is a typical user case that is currently not covered.

Hope that is what you are looking for.

Regards,
Jon



On Tue Dec 09 2014 at 17:29:04 Radek Holy rh...@redhat.com wrote:

 Dear users of YUM and DNF,

 I'm writing to you regarding a request for your feedback. I would be very
 grateful if you could send me a brief description of how you use YUM or DNF
 currently or how would you like to use it. I am particularly interested in
 the occurrences of dnf/yum install calls in your scripts. What does these
 scripts do and what do they expect when they call the install command in
 different situations?

 Please share with me the use cases, not the description of the install
 command. Think twice before you share something because I believe it's not
 as easy as it might seem. As an example I think it might be something like:

 - I call YUM install, because I want to get given packages into my system
 and I don't care whether it requires an upgrade or downgrade or what. or
 - I want to get them there but it should protect me against dangerous
 operations like downgrades or
 - I often make typos, so I expect that the program knows what I mean or
 - it would be nice if it would literally perform the installation; if any
 of the packages cannot be installed because of any reason, it should fail.

 Not something like: that's obvious that the install command should never
 downgrade packages.

 Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not
 on the command's name as it might also result in a new command (while
 preserving the well-known install command together with an appropriate
 behaviour).

 I don't mind if you send it offlist (or to another list). I think there is
 no need to comment on anyone's use case. Every case is valid. Just not
 every case can be supported.

 Thank you very much in advance.
 --
 Radek Holý
 Associate Software Engineer
 Software Management Team
 Red Hat Czech
 --
 devel mailing list
 devel@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/devel
 Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
-- 
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: Poll: How users use DNF

2014-12-09 Thread Przemek Klosowski

On 12/09/2014 12:28 PM, Radek Holy wrote:

Please share with me the use cases, not the description of the install 
command. Think twice before you share something because I believe it's not as easy as it 
might seem. As an example I think it might be something like:

- I call YUM install, because I want to get given packages into my system and I 
don't care whether it requires an upgrade or downgrade or what. or
- I want to get them there but it should protect me against dangerous operations 
like downgrades or
- I often make typos, so I expect that the program knows what I mean or
- it would be nice if it would literally perform the installation; if any of the 
packages cannot be installed because of any reason, it should fail.



I have mixed feelings for the typo correction/suggestions for arguments 
providing package names: I am glad they are case-insensitive because 
case conventions in package names are all over the place. On the other 
hand I am concerned about possible mistakes (I want to 'install foo' but 
mistype it as 'boo' and end up installing 'bugaboo').


The 'yum' environment is a little too rich: too many commands: routine 
system administration requires all of yum, yum-complete-transaction, 
yumdownloader, repoquery, package-cleanup, and rpm---each of those 
commands is sometimes essential in a way not provided by other related 
commands.


I do appreciate that yum doesn't just report errors and problems but 
also provides suggestions for fixing them.


I think the dependency and system consistency checks are essential, and 
--skip-broken is quite useful. On the other hand, maybe in an ideal 
world skip-broken should almost never be required---I feel I am forced 
to use it far too often even though I use fairly vanilla package sets. 
This also reminds me that it's absolutely crazy that anyone would ever 
need to manually delete __db.00?, although to be fair I wasn't forced to 
do it anytime in recent memory, so maybe that has been fixed.


HTH

przemek

-- 
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: Poll: How users use DNF

2014-12-09 Thread Colin Walters

On Tue, Dec 9, 2014, at 04:58 PM, Jon Kent wrote:
 Hi,

 We use yum wrapped up in a python script that runs from a master
 server and uses ssh to log into server/servers and run the
 requested command

I'd recommend Ansible, it comes with built in primitives for interacting
with yum declaratively. There are other systems out there of course too.
-- 
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: Poll: How users use DNF

2014-12-09 Thread Radek Holy
- Original Message -
 From: Radek Holy rh...@redhat.com
 To: devel@lists.fedoraproject.org
 Sent: Tuesday, December 9, 2014 6:28:54 PM
 Subject: Poll: How users use DNF
 
 Dear users of YUM and DNF,
 
 I'm writing to you regarding a request for your feedback. I would be very
 grateful if you could send me a brief description of how you use YUM or DNF
 currently or how would you like to use it. I am particularly interested in
 the occurrences of dnf/yum install calls in your scripts. What does these
 scripts do and what do they expect when they call the install command in
 different situations?
 
 Please share with me the use cases, not the description of the install
 command. Think twice before you share something because I believe it's not
 as easy as it might seem. As an example I think it might be something like:
 
 - I call YUM install, because I want to get given packages into my system
 and I don't care whether it requires an upgrade or downgrade or what. or
 - I want to get them there but it should protect me against dangerous
 operations like downgrades or
 - I often make typos, so I expect that the program knows what I mean or
 - it would be nice if it would literally perform the installation; if any of
 the packages cannot be installed because of any reason, it should fail.
 
 Not something like: that's obvious that the install command should never
 downgrade packages.
 
 Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not on
 the command's name as it might also result in a new command (while
 preserving the well-known install command together with an appropriate
 behaviour).
 
 I don't mind if you send it offlist (or to another list). I think there is no
 need to comment on anyone's use case. Every case is valid. Just not every
 case can be supported.

Wow, I have already received a lot of feedback from you. I have not read it all 
yet. I very much appreciate it. Feel free to add even more feedback :-)

I just forgot to mention that even your own aliases, plugins, workarounds and 
the other hacks you always need to do your job properly would be very 
interesting for us.

Thank you in advance
-- 
Radek Holý
Associate Software Engineer
Software Management Team
Red Hat Czech
-- 
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: Poll: How users use DNF

2014-12-09 Thread Christopher
On Tue, Dec 9, 2014 at 12:28 PM, Radek Holy rh...@redhat.com wrote:

 Dear users of YUM and DNF,

 I'm writing to you regarding a request for your feedback. I would be very
 grateful if you could send me a brief description of how you use YUM or DNF
 currently or how would you like to use it. I am particularly interested in
 the occurrences of dnf/yum install calls in your scripts. What does these
 scripts do and what do they expect when they call the install command in
 different situations?

 Please share with me the use cases, not the description of the install
 command. Think twice before you share something because I believe it's not
 as easy as it might seem. As an example I think it might be something like:

 [snip]

Hi,

I typically use 'yum upgrade' because I just want to make sure I have the
latest patches. Often, I will do 'yum --enablerepo=\* clean all' to ensure
I don't have stale metadata, first.
I also occasionally use 'yum distro-sync' to drop orphaned packages, and
rely heavily on plugins like protectbase, keys, show-leaves,
remove-with-leaves, and fastestmirror.

I also sometimes use 'yum localinstall' to install specific packages with a
URL or filename (to install RPMfusion repos, for example), because I don't
want to see warnings about rpmdb modified outside of yum with using rpm
directly.

I frequently use 'yum list installed' to and wildcard patterns to the list
command to search for specific packages (because search tends to show
32-bit duplicates and I don't typically need the description, just the
package name, when searching).

In cloud init scripts I frequently use '-y' and '--skip-broken' to install
or upgrade specific sets of packages, because these scripts run
non-interactively and I want to upgrade some things even when I can't
upgrade everything. In my normal workstation environment, I typically only
run yum manually from the command-line and don't need these.

I have not yet tried dnf at all.


--
Christopher L Tubbs II
http://gravatar.com/ctubbsii
-- 
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: Poll: How users use DNF

2014-12-09 Thread M. Edward (Ed) Borasky
I have yet to port my scripts (https://bitbucket.org/znmeb/osjourno)
from 'yum' to 'dnf'. I'm not sure I am going to unless the live ISO
creation tools also switch. But I have tried both 'dnf' and 'yum'
manually during the F21 alpha and beta test phases. I think there were
cases where 'yum' said there were updates and 'dnf' didn't. And it
seemed like 'dnf' was slower.

My main use case is 'yum update' - I rarely use the Software tool on
the desktop.

On Tue, Dec 9, 2014 at 9:28 AM, Radek Holy rh...@redhat.com wrote:
 Dear users of YUM and DNF,

 I'm writing to you regarding a request for your feedback. I would be very 
 grateful if you could send me a brief description of how you use YUM or DNF 
 currently or how would you like to use it. I am particularly interested in 
 the occurrences of dnf/yum install calls in your scripts. What does these 
 scripts do and what do they expect when they call the install command in 
 different situations?

 Please share with me the use cases, not the description of the install 
 command. Think twice before you share something because I believe it's not as 
 easy as it might seem. As an example I think it might be something like:

 - I call YUM install, because I want to get given packages into my system 
 and I don't care whether it requires an upgrade or downgrade or what. or
 - I want to get them there but it should protect me against dangerous 
 operations like downgrades or
 - I often make typos, so I expect that the program knows what I mean or
 - it would be nice if it would literally perform the installation; if any of 
 the packages cannot be installed because of any reason, it should fail.

 Not something like: that's obvious that the install command should never 
 downgrade packages.

 Please focus on *use cases*. The *real* (non-hypothetical) use cases. Not on 
 the command's name as it might also result in a new command (while preserving 
 the well-known install command together with an appropriate behaviour).

 I don't mind if you send it offlist (or to another list). I think there is no 
 need to comment on anyone's use case. Every case is valid. Just not every 
 case can be supported.

 Thank you very much in advance.
 --
 Radek Holý
 Associate Software Engineer
 Software Management Team
 Red Hat Czech
 --
 devel mailing list
 devel@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/devel
 Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct



-- 
Twitter: http://twitter.com/znmeb; OSJourno: Robust Power Tools for
Digital Journalists https://osjourno.com

Remember, if you're traveling to Bactria, Hump Day is Tuesday and Thursday.
-- 
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: Poll: How users use DNF

2014-12-09 Thread Rahul Sundaram
Hi

On Tue, Dec 9, 2014 at 7:19 PM, M. Edward (Ed) Borasky wrote:

 I have yet to port my scripts (https://bitbucket.org/znmeb/osjourno)
 from 'yum' to 'dnf'. I'm not sure I am going to unless the live ISO
 creation tools also switch. But I have tried both 'dnf' and 'yum'
 manually during the F21 alpha and beta test phases. I think there were
 cases where 'yum' said there were updates and 'dnf' didn't. And it
 seemed like 'dnf' was slower.


http://dnf.readthedocs.org/en/latest/user_faq.html?highlight=faq#why-do-i-get-different-results-with-dnf-upgrade-vs-yum-update

Rahul
-- 
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: Poll: How users use DNF

2014-12-09 Thread Oron Peled

On Tuesday 09 December 2014 18:39:25 Radek Holy wrote:
 Wow, I have already received a lot of feedback from you. I have not read it 
 all yet. I very much appreciate it. Feel free to add even more feedback :-)
 I just forgot to mention that even your own aliases, plugins, workarounds and 
 the other hacks you always need to do your job properly would be very 
 interesting for us.

OK, this isn't a direct DNF/YUM item, but still...

I have several workstations/laptops with the same Fedora version (currently 20):
 * Downloading the same RPM's/DRPM's for each of these hosts is a huge waste.
 * OTOH, I haven't found a no-brainer yum-proxy (a-la Debian's apt-proxy
   or apt-cacher-ng)
 * I update them daily. I do this manually to have a quick look at what changes.
 * Sometimes I update via KDE apper (which use PackageKit, which calls
   yum backend).
 * But most of the time I do this over ssh, using DNF (it's faster...)

So my workaround is:
 * I have a script: yumcache_to hostname
 * This copies (via rsync) all RPM's/DRPM's under /var/cache/yum.
   Last year I also added /var/cache/dnf.
 * It doesn't copy the meta-data files (for safety -- maybe they are in
   the middle of update via PackageKit or some cron-job).
 * When I started using DNF, I modified my script to also cross-hard-link
   all packages between yum and dnf caches before the rsync.
 * This effectively make them behave as a unified cache. Since some of
   my updates are via yum (e.g: via PackageKit) and some via dnf -- this
   cross-hard-linking also save extra downloads.

For this to be effective:
 * I have a keepcache=1 in /etc/yum.conf and keepcache=true in /etc/dnf/dnf.conf
 * I have another yumcache_dillute script that remove old RPM's from caches
   (by time-stamp).

As said, this isn't directly yum/dnf issue, but your are the people that can
think of the missing pieces (some yum/dnf proxy -- that maps url's
across mirrorlist -- so the same RPM's is a proxy hit, regardless of
which exact mirror it was pulled off)

Thank you all,

-- 
Oron Peled Voice: +972-4-8228492
o...@actcom.co.il  http://users.actcom.co.il/~oron

...there are two types of command interfaces in the world of
 computing: good interfaces and user interfaces.
- Dan Bernstein, Author of qmail

-- 
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: Poll: How users use DNF

2014-12-09 Thread Kevin Kofler
Przemek Klosowski wrote:
 I have mixed feelings for the typo correction/suggestions for arguments
 providing package names: I am glad they are case-insensitive because
 case conventions in package names are all over the place. On the other
 hand I am concerned about possible mistakes (I want to 'install foo' but
 mistype it as 'boo' and end up installing 'bugaboo').

Indeed, autocorrection should never be done without confirmation (and in 
non-interactive mode (dnf -y), it should probably just fail). It's just 
too likely to accidentally give the wrong answer.

Kevin Kofler

-- 
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: Poll: How users use DNF

2014-12-09 Thread Jon Kent
Hi,

Thanks, I'll take a look.

Jon

On Tue, 9 Dec 2014 22:58 Colin Walters walt...@verbum.org wrote:

 On Tue, Dec 9, 2014, at 04:58 PM, Jon Kent wrote:

 Hi,

 We use yum wrapped up in a python script that runs from a master server
 and uses ssh to log into server/servers and run the requested command


 I'd recommend Ansible, it comes with built in primitives for interacting
 with yum declaratively.  There are other systems out there of course too.
  --
 devel mailing list
 devel@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/devel
 Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct