Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to speed up zypper and YAST2 when installing appz?

  1. #1

    Question How to speed up zypper and YAST2 when installing appz?

    I found zypper and YAST2 are comparatively slower than apt-get in my situation.Because when one application,e.g KDE 4.6,which has a lot of dependent appz,those depencies are installed after downloaded one by one.But in the case of apt-get ,they are installing and downloading simultaneously.No doubt that apt-get are faster than zypper.

  2. #2
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: How to speed up zypper and YAST2 when installing appz?

    You can modify zypper/YaST to download all packages first then install them by adding the option
    Code:
    commit.downloadMode = DownloadInAdvance
    To /etc/zypp/zypp.conf
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: How to speed up zypper and YAST2 when installing appz?

    On 02/16/2011 10:36 AM, ah7013 wrote:
    >
    > You can modify zypper/YaST to download all packages first then install
    > them by adding the option


    how does that affect YaST? (some think yast software management is a
    gui front end for zypper, but it is not...instead both yast and zypper
    use the same libs, but are different front ends for those libs)


    > To /etc/zypp/zypp.conf


    does that file use some non-standard way of commenting out lines?

    that is, i see that almost all lines begin with two ##, and a few with
    just one #

    should i assume that either one or two ## comments out the line, and
    only those with none are read?

    but that means that .... well, you see my question/wonder??

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD
    [NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
    173.14.28 3D, Athlon 64 3000+]
    "It is far easier to read, understand and follow the instructions than
    to undo the problems caused by not." DD 23 Jan 11

  4. #4
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,564
    Blog Entries
    38

    Default Re: How to speed up zypper and YAST2 when installing appz?

    Quote Originally Posted by axishero View Post
    I found zypper and YAST2 are comparatively slower than apt-get in my situation.Because when one application,e.g KDE 4.6,which has a lot of dependent appz,those depencies are installed after downloaded one by one.But in the case of apt-get ,they are installing and downloading simultaneously.No doubt that apt-get are faster than zypper.
    IMHO it is far better to install one by one AFTER download, than to install one by one DURING download.

    What happens if 1/2 through a critical download you lose the internet connection and one has installed 1/2 of the apps already (but other 1/2 are missing). That could be bad news. One may not be able to boot afterward.

    Is that the way apt-get works ?

    If that indeed is the way apt-get works, then I certainly would want no part of it.

  5. #5
    Join Date
    Jun 2008
    Location
    Kentucky, USA
    Posts
    466

    Default Re: How to speed up zypper and YAST2 when installing appz?

    Quote Originally Posted by axishero View Post
    I found zypper and YAST2 are comparatively slower than apt-get in my situation.Because when one application,e.g KDE 4.6,which has a lot of dependent appz,those depencies are installed after downloaded one by one.But in the case of apt-get ,they are installing and downloading simultaneously.No doubt that apt-get are faster than zypper.
    Apt-get downloads everything first, and then installs. It isn't simultaneous.
    Klaatu Barada Nikto

  6. #6
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: How to speed up zypper and YAST2 when installing appz?

    Quote Originally Posted by DenverD View Post
    how does that affect YaST? (some think yast software management is a
    gui front end for zypper, but it is not...instead both yast and zypper
    use the same libs, but are different front ends for those libs)
    /etc/zypp/zypp.conf should affect both YaST and zypper (libzypp config file). /etc/zypp/zypper.conf should be zypper only.
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,382
    Blog Entries
    1

    Default Re: How to speed up zypper and YAST2 when installing appz?

    This might be an apples and oranges argument anyway - it will depend on the number of repos enabled, and how fast the server connections are anyway.

  8. #8
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: How to speed up zypper and YAST2 when installing appz?

    ok...thx

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD
    [NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
    173.14.28 3D, Athlon 64 3000+]
    "It is far easier to read, understand and follow the instructions than
    to undo the problems caused by not." DD 23 Jan 11

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to speed up zypper and YAST2 when installing appz?

    On 2011-02-16 16:02, DenverD wrote:
    > On 02/16/2011 10:36 AM, ah7013 wrote:



    > how does that affect YaST?


    Unknown.

    >> To /etc/zypp/zypp.conf

    >
    > does that file use some non-standard way of commenting out lines?
    >
    > that is, i see that almost all lines begin with two ##, and a few with
    > just one #
    >
    > should i assume that either one or two ## comments out the line, and
    > only those with none are read?


    Simple. A double is a comment, a single is a variable or setting commented
    out, but which you can activate by uncommenting it out.

    That's programmesse advanced training >:-P

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to speed up zypper and YAST2 when installing appz?

    On 2011-02-16 16:36, oldcpu wrote:
    >
    > axishero;2290642 Wrote:
    >> I found zypper and YAST2 are comparatively slower than apt-get in my
    >> situation.Because when one application,e.g KDE 4.6,which has a lot of
    >> dependent appz,those depencies are installed after downloaded one by
    >> one.But in the case of apt-get ,they are installing and downloading
    >> simultaneously.No doubt that apt-get are faster than zypper.

    >
    > IMHO it is far better to install one by one AFTER download, than to
    > install one by one DURING download.


    It is indifferent :-)

    > What happens if 1/2 through a critical download you lose the internet
    > connection and one has installed 1/2 of the apps already (but other 1/2
    > are missing). That could be bad news. One may not be able to boot
    > afterward.


    Assume the situation:

    a) download a.rpm
    b.1) install a.rpm
    b.2) simultaneously (another thread) downloads b.rpm

    Failures:

    a.rpm fails to install. The situation is the same if b.rpm is also being
    downloaded or not. It doesn't matter. Depending on what is the cause it
    will attempt to redownload, skip, or whatever, asking the user. At the same
    time as all this is happening, another thread is downloading b, then c,
    then d... which is time saving, keep the slow network busy. At worst, all
    those packages will be unused if the user aborts.

    There are just two threads: one that keeps downloading everything, one by
    one, and another that installs everything, one after another, as soon as
    they become available and the thread is ready for the next archive. They
    are independent threads, and both work sequentially.

    Install two packages at the same time? No, impossible the rpm database
    doesn't allow concurrent write access.


    Failure: package b.rpm fails to download mid-ways, while a.rpm is being
    installed.

    The situation is the same as we currently have: download a, install a,
    download b, install b, when download b fails midway. The a.rpm package is
    already installed. You can modify the behaviour to install in batches of
    related packages, when all the batch has been downloaded, but that is not
    the default.


    > Is that the way apt-get works ?
    >
    > If that indeed is the way apt-get works, then I certainly would want no
    > part of it.


    I would, very much >:-)

    And I think that the old YaST did so, 10 years ago.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •