Re: 22-> 23 on multiple hosts

2016-04-19 Thread Michal Domonkos
> worked as expected -- it didn't download anything

Actually, "it didn't re-download any of the cached packages" would be
the correct wording here.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 22-> 23 on multiple hosts

2016-04-19 Thread Michal Domonkos
You're right.  I've just tested it without copying the file (just the
dir with the packages) and running "dnf system-upgrade download"
worked as expected -- it didn't download anything and just created the
file, making it possible to run "dnf system-upgrade reboot"
afterwards.  This is definitely the correct approach, thanks.

On Mon, Apr 18, 2016 at 9:52 PM, Samuel Sieb  wrote:
> On 04/18/2016 04:10 AM, Michal Domonkos wrote:
>>>
>>> I don't have a computer to test with right now, but I'm pretty sure
>>> system-upgrade doesn't put the packages in there.  So at most you will be
>>> merely copying the repo data across.
>>
>>
>> Actually, this is correct -- system-upgrade puts them in
>> /var/lib/dnf/system-upgrade, not in /var/cache/dnf.  Copying this
>> folder alone isn't enough, though.  One must also copy the
>> /var/lib/dnf/system-upgrade.json file.
>
>
> Have you tested that it is necessary?  Personally, I would not want to copy
> that file and just let system-upgrade create it on each computer. DNF should
> still use the copied files if they are relevant.
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 22-> 23 on multiple hosts

2016-04-18 Thread Samuel Sieb

On 04/18/2016 04:10 AM, Michal Domonkos wrote:

I don't have a computer to test with right now, but I'm pretty sure
system-upgrade doesn't put the packages in there.  So at most you will be
merely copying the repo data across.


Actually, this is correct -- system-upgrade puts them in
/var/lib/dnf/system-upgrade, not in /var/cache/dnf.  Copying this
folder alone isn't enough, though.  One must also copy the
/var/lib/dnf/system-upgrade.json file.


Have you tested that it is necessary?  Personally, I would not want to 
copy that file and just let system-upgrade create it on each computer. 
DNF should still use the copied files if they are relevant.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 22-> 23 on multiple hosts

2016-04-18 Thread Michal Domonkos
> I don't have a computer to test with right now, but I'm pretty sure
> system-upgrade doesn't put the packages in there.  So at most you will be
> merely copying the repo data across.

Actually, this is correct -- system-upgrade puts them in
/var/lib/dnf/system-upgrade, not in /var/cache/dnf.  Copying this
folder alone isn't enough, though.  One must also copy the
/var/lib/dnf/system-upgrade.json file.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 22-> 23 on multiple hosts

2016-04-15 Thread Samuel Sieb

On 04/15/2016 05:57 AM, Honza Šilhan wrote:

From: "Samuel Sieb" 
The one you want is:
/var/lib/dnf/system-upgrade


IIRC in this folder are the packages already resolved. I would do system upgrade
properly. If you still think loosing your data worth saving 3.2Gb of transfer 
then
try rather this:

I did say he should run "dnf system-upgrade download" on each computer 
to make sure the package set is consistent for each one.  But that is 
the directory to copy to save the downloading.



dnf system-upgrade download --releasever=23 --refresh --setopt=keepcache=1
# copy /var/cache/dnf/fedora* to other machines
dnf system-upgrade download --releasever=23  # on other machines
dnf system-upgrade reboot  # everywhere

I don't have a computer to test with right now, but I'm pretty sure 
system-upgrade doesn't put the packages in there.  So at most you will 
be merely copying the repo data across.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 22-> 23 on multiple hosts

2016-04-15 Thread Honza Šilhan
> From: "Samuel Sieb" 
> 
> On 04/14/2016 12:48 PM, Frank Elsner wrote:
> > I've to update 3 laptops from Ferdora 22 to fedora 23.
> > "dnf system-upgrade download --releasever=23" wants to download 1.6 GB.
> > I don't want to do this 3 times and came to the following idea:
> >
> > Host 1Host 2
> > dnf system-upgrade download --releasever=23
> > /var/cache/dnf/i386/23 -> /var/cache/dnf/i386/23
> > /var/cache/yum/i386/23 -> /var/cache/yum/i386/23
> > dnf system-upgrade reboot dnf system-upgrade reboot
> >
> > Will this work?
> >
> Those directories don't even exist.
> 
> The one you want is:
> /var/lib/dnf/system-upgrade

IIRC in this folder are the packages already resolved. I would do system upgrade
properly. If you still think loosing your data worth saving 3.2Gb of transfer 
then
try rather this:

dnf system-upgrade download --releasever=23 --refresh --setopt=keepcache=1
# copy /var/cache/dnf/fedora* to other machines
dnf system-upgrade download --releasever=23  # on other machines
dnf system-upgrade reboot  # everywhere


Honza
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 22-> 23 on multiple hosts

2016-04-14 Thread Samuel Sieb

On 04/14/2016 12:48 PM, Frank Elsner wrote:

I've to update 3 laptops from Ferdora 22 to fedora 23.
"dnf system-upgrade download --releasever=23" wants to download 1.6 GB.
I don't want to do this 3 times and came to the following idea:

Host 1Host 2
dnf system-upgrade download --releasever=23
/var/cache/dnf/i386/23 -> /var/cache/dnf/i386/23
/var/cache/yum/i386/23 -> /var/cache/yum/i386/23
dnf system-upgrade reboot dnf system-upgrade reboot

Will this work?


Those directories don't even exist.

The one you want is:
/var/lib/dnf/system-upgrade

Once you run the download on the first one, copy that directory to the 
next computer.  But still run the dnf download command on every computer 
to make sure you have the right packages.  If the package already exists 
in that directory it won't download it again.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


22-> 23 on multiple hosts

2016-04-14 Thread Frank Elsner

Hello,

I've to update 3 laptops from Ferdora 22 to fedora 23.
"dnf system-upgrade download --releasever=23" wants to download 1.6 GB.
I don't want to do this 3 times and came to the following idea:

Host 1Host 2
dnf system-upgrade download --releasever=23
/var/cache/dnf/i386/23 -> /var/cache/dnf/i386/23
  
/var/cache/yum/i386/23 -> /var/cache/yum/i386/23
dnf system-upgrade reboot dnf system-upgrade reboot

Will this work?


--Frank Elsner
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org