Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    copying programs

    can copied programs work on other distros? for example copying gcc from ubuntu and putting it on debian, or copying it from debian and putting it on gentoo?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Programs are seldom statically linked.
    Instead they have dependencies on shared libraries.

    The version of programs and libraries as well as specific patches vary from distribution to distribution.

    So: If you copy everything a program needs in the right version and patch level to the right place, then yes.
    The program will run.

    But you have a high chance of killing several other programs, that now have to deal with unexpected libraries.

    Then there is the problem of all the additional files and directorys: man pages, logfile dirs, etc.
    You would need to copy these too, thus creating even more chaos on the destination system.

    Also, package manager might overwrite your copy during the next update.

    In short: Dont do it.
    You must always face the curtain with a bow.

  3. #3
    thanks for the help, seems pretty useless if the package manager would overwrite it

  4. $spacer_open

Posting Permissions

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