Results 1 to 10 of 10

Thread: package installation without dependencies

  1. #1
    Join Date
    Oct 2012
    Location
    India
    Posts
    332

    Default package installation without dependencies

    Hi guys,

    I have experienced a strange thing when I was installing google chrome in Opensuse 12.3.The thing is I have downloaded and installed it through zypper and it has consumed nearly 300mb of space.I tried installing with "rpm --nodeps -ivh google-chrome.rpm and it installed fine and working fine.Now my question is What is the use of installing all the dependencies if it is working fine without them.What's the difference.

    Thanks in advance.

  2. #2
    Join Date
    Jun 2008
    Location
    Stoney Stanton - England
    Posts
    1,108

    Default Re: package installation without dependencies

    I suppose that the answer when you install a rpm like you did is that either 1 - it won't work or 2 - it works fine but there is perhaps a part or aspect or feature that won't work which you won't be aware of until you come across it.

  3. #3

    Default AW: package installation without dependencies

    Quote Originally Posted by nishanth9042 View Post
    Hi guys,

    I have experienced a strange thing when I was installing google chrome in Opensuse 12.3.The thing is I have downloaded and installed it through zypper and it has consumed nearly 300mb of space.I tried installing with "rpm --nodeps -ivh google-chrome.rpm and it installed fine and working fine.Now my question is What is the use of installing all the dependencies if it is working fine without them.What's the difference.

    Thanks in advance.
    Maybe zypper just wanted to install recommended packages that have nothing to do with google-chrome.

    And rpm's "--nodeps" option is to install the package although some dependencies are missing. Most likely it will not work then.
    But I don't think you had dependencies missing, see above. You could have installed without "--nodeps", rpm doesn't download packages anyway, it would just quit with an error.

  4. #4
    Join Date
    Oct 2012
    Location
    India
    Posts
    332

    Default Re: package installation without dependencies

    k and in that case How are thin client OS made I mean They install google chrome,libreoffice,java,samba and several other applications under 500MB.But when I have installed chrome with dependencies it took me 300MB of my HDD space.How is it possible because they have been using the same applications.Is there a way to reduce the size.

  5. #5
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: package installation without dependencies

    i think *chromium* may pull in less number of packages.
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  6. #6

    Default Re: package installation without dependencies

    Quote Originally Posted by nishanth9042 View Post
    k and in that case How are thin client OS made I mean They install google chrome,libreoffice,java,samba and several other applications under 500MB.But when I have installed chrome with dependencies it took me 300MB of my HDD space.How is it possible because they have been using the same applications.Is there a way to reduce the size.
    Well, Chrome itself is over 100MB AFAIR.
    And you don't have to install those recommended packages. (they are "recommended" not "required").
    You can just uninstall things you don't need. (selecting them might be easier with YaST than with zypper)
    Also there's the setting "Ignore Recommended Packages for Already Installed Packages" which would prevent that when enabled.
    For zypper there's the option "installRecommends". Set this to "no" in /etc/zypp/zypper.conf .

  7. #7
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    254

    Default AW: Re: package installation without dependencies

    Quote Originally Posted by wolfi323 View Post
    For zypper there's the option "installRecommends". Set this to "no" in /etc/zypp/zypper.conf .
    Why so complicated? You can tell zypper to not install recommenfs via commandline.
    Code:
    zypper install --no-recommends <packagename>
    zypp it...

  8. #8
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    254

    Default AW: package installation without dependencies

    Quote Originally Posted by wolfi323 View Post
    ...rpm doesn't download packages anyway, it would just quit with an error.
    RPM is fully networkable and can download packages from the internet. But you must give it the full network path to the package. Following commands works:

    Code:
    rpm -ivh http://download.opensuse.org/repositories/openSUSE:/12.3/standard/x86_64/chromium-27.0.1425.0-1.1.1.x86_64.rpm
    Retrieving http://download.opensuse.org/repositories/openSUSE:/12.3/standard/x86_64/chromium-27.0.1425.0-1.1.1.x86_64.rpm
    [...]
    zypp it...

  9. #9
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,051
    Blog Entries
    14

    Default Re: AW: package installation without dependencies

    Quote Originally Posted by zerum View Post
    RPM is fully networkable and can download packages from the internet. But you must give it the full network path to the package. Following commands works:

    Code:
    rpm -ivh http://download.opensuse.org/repositories/openSUSE:/12.3/standard/x86_64/chromium-27.0.1425.0-1.1.1.x86_64.rpm
    Retrieving http://download.opensuse.org/repositories/openSUSE:/12.3/standard/x86_64/chromium-27.0.1425.0-1.1.1.x86_64.rpm
    [...]
    That's not what was meant. Meant was that zypper searches the configured repos to resolve dependencies, rpm doesn't.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  10. #10
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    254

    Default AW: Re: AW: package installation without dependencies

    Quote Originally Posted by Knurpht View Post
    That's not what was meant. Meant was that zypper searches the configured repos to resolve dependencies, rpm doesn't.
    I apologize if i have misunderstood...
    zypp it...

Posting Permissions

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