Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi Guys, I apologize in advance if I seem confused, I'm trying to make sense into it I'm relatively new to the Linux world, I've been going on so far ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    11

    Question on dependencies on CentOS 5.5


    Hi Guys,

    I apologize in advance if I seem confused, I'm trying to make sense into it

    I'm relatively new to the Linux world, I've been going on so far with google searches , but at this point I wouldn't know what to search for

    I'm trying to install an rpm package

    rpm -Uvh --test pyparted-1.8.1-4.el5.i386.rpm
    warning: pyparted-1.8.1-4.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
    error: Failed dependencies:
    libparted-1.8.so.0 is needed by pyparted-1.8.1-4.el5.i386


    until here, ok.

    but I do have installed as per "yum list parted"

    parted.i386 1.8.2-1.fc6

    so I find

    /usr/lib/libparted-1.8.so.2 (so basically I have .2 and I need .0)

    I can't at this point change the version of parted. but how does it work, what is that .0 as opposed to .2 ? what's it called?

    can I re-compile something to obtain what I need?

    if I would know I would google it

    thank you very much

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,440
    Hi and welcome.

    It seems, that s/o (force)installed parted 1.8.2 for fedora core 6 on this centos 5 machine.
    - This fedora version is hopelessly outdated.
    - *Do not* mix rpms from different distributions

    /usr/lib/libparted-1.8.so.* belongs to the parted rpm.
    Because you installed a wrong version, you also have the wrong library and hence the dependency breaks.

    My suggestion would be to deinstall parted with
    Code:
    rpm -e parted
    and then reinstall the correct version and pyparted via
    Code:
    yum install parted pyparted
    Last edited by Irithori; 04-18-2012 at 07:31 PM.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    11
    Quote Originally Posted by Irithori View Post
    Hi and welcome.

    It seems, that s/o (force)installed parted 1.8.2 for fedora core 6 on this centos 5 machine.
    - This fedora version is hopelessly outdated.
    - *Do not* mix rpms from different distributions

    /usr/lib/libparted-1.8.so.* belongs to the parted rpm.
    Because you installed a wrong version, you also have the wrong library and hence the dependency breaks.

    My suggestion would be to deinstall parted with
    Code:
    rpm -e parted
    and then reinstall the correct version and pyparted via
    Code:
    yum install parted pyparted

    Hi, and THANK YOU for answering

    the reason why I am working with RPMs is because the system we're currently on (i started a new job recently and was thrown into the pit) works with RPMs installed in a ISO and the installation launches and installs all dependencies located by the person who has to do it... in this case ME. I'd love to be able to use YUM but I can't, I have to locate packages 1 by 1.

    so I go back to my original question, what exactly is that .0 .2 at the end of the library name? does it depend on the version I am installing? or it's something I can rebuild?


    all this annoying thing is so I can install anaconda-11.1.2.209-1.el5.centos.i386.rpm to use a mere binary file implantisomd5

    thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,440
    There is a naming convention for shared libraries.
    - they start with lib
    - followed by a distinctive name
    - followed by .so
    - followed by a major version number
    - optionally followed by a minor version number
    - optionally followed by a release number

    It is also understood, that the linker does not make assumptions on which minor/release number a user wants.
    For this reason, the developer/package maintainer/sysadmin has to set a softlink from the desired lib to lib<name>.so<.major>

    Now, the major numbers indicate a change in the interface.
    In your example: the .2 and .0 are likely not compatible.

    Reference:
    Shared Libraries
    Shared objects for the object disoriented!


    As for rebuilding: Yes of course you can.
    It just doesnt make any sense to me

    parted and pyparted are part of the standard centos 5 repository.
    The problem is the fedora parted package.
    Get rid of it, install the centos 5 packages.
    Case closed, everyone is happy.


    As for rpm/yum:
    yum builds upon rpm. It can resolve rpm dependencies, download and install rpm packages, etc.

    yum can use local directories (maybe on a dvd) or remote ones (nfs/http/ftp) as repositories.
    It is quite common to have the centos provided os rpms in a network wide local repository for performance reasons.
    Same goes for the updates: One machine in your network pulls them from upstream, and the rest of your network can pull from that one machine.

    If you have need for 3rd_party rpms or you build rpms yourself, then also a repo comes to mind for consistency reasons.

    It is not that hard either:
    Once you have the rpms, you need to create some index files with the command "createrepo" from the createrepo package.
    Then the directory with the rpms needs to be exposed via ftp/http/etc
    And finally the clients need to know about this repo via a file in /etc/yum.repos.d
    You must always face the curtain with a bow.

  6. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    11
    Linux Gurus are so nice... Programming experts are for the majority a bunch of asses

    Thanks! I'm gonna read about it!

    Hey do you have any idea why the 2 packages fc6 and the el5 have completely different dependencies??

    Removing:
    parted i386 1.8.1-27.el5 installed 1.3 M
    Removing for dependencies:
    anaconda i386 11.1.2.209-1.el5.centos installed 19 M
    anaconda-runtime i386 11.1.2.209-1.el5.centos installed 3.2 M
    pyparted i386 1.8.1-4.el5 installed 52 k


    and


    Removing:
    parted i386 1.8.2-1.fc6 installed 1.3 M
    Removing for dependencies:
    postinstall i386 0.1-45445.fl installed 16 k
    postinstall_business_edition i386 0.1-40284.fl.ob installed 1.1 k


    I can't understand that, because to me, the dependencies should be the same, or at the very least, the new/old should differ by a few old/new packages. not completely different!

  7. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,440
    Because they can?
    Each distribution can decide on the package dependency tree as their package maintainers see fit to bring their distribution forward.

    Again and to make it clear:
    - Fedora and CentOS are too different distributions.
    - It is a very bad idea to mix rpms from different distributions. You just experienced why.

    But to tell the complete story:
    There are some links from fedora to CentOS.
    Fedora is the testbed for RedHat. New projects and approaches are released in the wild here.
    The good parts have a chance to make it into the next commercial release of RedHat.
    CentOS is a binary compatible RedHat clone.
    So yes, there are similarities in the rpm dependencies between fedora and centos.
    But it is for sure not a goal to make them 100% the same.


    P.S.: Careful with words.
    As an ops guy, I do have occasional fights with dev guys (or vice versa ), but swearing wont help.
    You must always face the curtain with a bow.

  8. #7
    Just Joined!
    Join Date
    Sep 2010
    Posts
    11
    I will be careful :P

    anyway can you suggest any good book to do what I am trying to do? dealing with RPMs/YUM editing (repos & code edit) ?

    thanks!

  9. #8
    Just Joined!
    Join Date
    Sep 2010
    Posts
    11
    no idea? UP

  10. #9
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,649
    Code:
    man yum
    and
    Code:
    man rpm
    are a good starting point, if possibly a little dry in places.
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  11. #10
    Just Joined!
    Join Date
    Sep 2010
    Posts
    11
    yep... here's one that I mentioned before.

    I really wonder what makes some people be like you... no cuddles when you were a baby?

    anyway... anybody that can suggest a book with pages, paperback? if you don't it's ok not to answer... at least you avoid coming up as a total douche

    thanks

Page 1 of 2 1 2 LastLast

Posting Permissions

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