Results 1 to 6 of 6

Thread: zypper question

  1. #1

    Default zypper question

    Anything I install I like to have saved so I always download any rpm before installation. Before coming across zypper, and since I'm still "new" to linux, I always downloaded one rpm at a time and then used the rpm command to install, carefully going through any dependency errors. As you can imagine this can become unnecessarily tedious.

    All that aside, now that I'm more familiar with zypper I know it's exactly what I want and I think it's great! My question is this... I've already downloaded some rpms but haven't finished resolving the dependencies. How can I use zypper to finish the job for me without having to re-download what I've already downloaded?
    One idea I have is to add the directory containing the rpms as a repo (and give it a higher priority?) and continue from there?
    So far what I know is to enable caching of the repos and use 'zypper up --dry-run <package>' and then to fetch the rpms from the cache directory.
    Any ideas?

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,726
    Blog Entries
    20

    Default Re: zypper question

    Do you have a good reason for manually downloading packages the way you describe? It's bad practice.

    zypper info:
    Zypper/Usage/11.1 - openSUSE
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3

    Default Re: zypper question

    zypper can also install local rpm packages (and _will_ fetch dependencies automatically).

    Code:
    zypper install /path/to/rpm/foo.rpm
    Still I don't see the point on making things a lot more complicated than they need to be.

    My question is this... I've already downloaded some rpms but haven't finished resolving the dependencies. How can I use zypper to finish the job for me without having to re-download what I've already downloaded?
    Assuming that _all_ packages you already downloaded are suitable for your distribution (if not, stop right now), do this once and then never again, package managers like zypper are exactly designed to do this job for you.

    Very often people download what they just find and most times they will download packages not suitable for their distribution, the safe way would be to not use any of your downloaded packages and rely only on your package manager (in this case zypper) to do it right.

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,649
    Blog Entries
    14

    Default Re: zypper question

    IMHO methods like this come from the Redmond area. Please use the package manager to safely install, update and uninstall stuff on your system. It will find the dependencies for you.

    You could also use Software.openSUSE.org for your distro.

    As far as your concern about downloading again: I can see the worries about that on a slow connection or pay per MB, otherwise don't bother too much.

    And do things via Software Management.
    ° 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

  5. #5

    Default Re: zypper question

    Quote Originally Posted by caf4926
    Do you have a good reason for manually downloading packages the way you describe?
    Well, I like to have my own "collection". Another reason I do this is because I have another computer without access to the internet, so...

    Quote Originally Posted by caf4926
    It's bad practice.
    It's also very tiring.

    Quote Originally Posted by Akoellh
    Still I don't see the point on making things a lot more complicated than they need to be.
    I have to start somewhere.

    Quote Originally Posted by Akoellh
    package managers like zypper are exactly designed to do this job for you.
    Exactly why I'm appreciating zypper all the more!

    Quote Originally Posted by Akoellh
    Very often people download what they just find and most times they will download packages not suitable for their distribution
    Not in my case. I pay close attention to this issue, though I still don't understand the differences between packages built for 11.0 or 11.1! Though I'm sure if I google for the answer it will pop up sooner or later, just haven't done so yet.

    Quote Originally Posted by Akoellh
    the safe way would be to not use any of your downloaded packages and rely only on your package manager (in this case zypper) to do it right.
    Agreed!

    Quote Originally Posted by Knurpht
    As far as your concern about downloading again: I can see the worries about that on a slow connection or pay per MB, otherwise don't bother too much.
    The main reason for my asking is to learn. The more you know...

    Quote Originally Posted by Knurpht
    And do things via Software Management.
    Agreed!

    Quote Originally Posted by Akoellh
    zypper can also install local rpm packages (and _will_ fetch dependencies automatically).
    Thanks, I'll get on to this tomorrow as I'm a bit tired and it's getting late for me.

    Thanks for the replies I've gotten so far, really appreciate them!!!

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,649
    Blog Entries
    14

    Default Re: zypper question

    In openSUSE you can do almost any system administrative job through Yast (Yet another setup tool). From software management to partitioning, from firewall to user management, from hardware info to webserver, all happens in Yast.
    The time us linux geeks were doing everything in a terminal is way past. Use Yast first, only touch the system by hand if you know what you're doing. It will keep you away from a lot of potential trouble. Mind, you issue commands as root. Commands issued as root are always immediately true. So, use Yast
    ° 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

Posting Permissions

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