replacing file in /bin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stoneringers
    Member
    • Dec 2008
    • 43

    #1

    replacing file in /bin

    I need to replace a file in /bin which is read only. How do I change it so that I can delete the old version of the file and replace it with a new one.
    Many thanks.
  • GastonJ
    V.I.P. Member
    • Dec 2009
    • 5505

    #2
    rm -f file
    as root of course
    My master plan is to live forever..... going to plan so far
    Despite the cost of living, it's still very popular.
    No good deed goes unpunished....

    Comment

    • Hairlocks
      Newbie
      • Dec 2010
      • 9

      #3
      Why do you need to replace a file in /bin and which one is it. You could quite easily break it by just trying to replace it, e.g. what library fils does the new one need, etc...

      Comment

      • Mjolinor
        V.I.P. VIC
        • Jan 2009
        • 1093

        #4
        There shouldn't be a need to replace it, just copy your new one in there with a different name. Unless you are calling it from something else in which case you should rename the original.

        Comment

        • GastonJ
          V.I.P. Member
          • Dec 2009
          • 5505

          #5
          He may not be using /usr/local/bin and it could well be a script or binary of his own making or just breaking his system..
          My master plan is to live forever..... going to plan so far
          Despite the cost of living, it's still very popular.
          No good deed goes unpunished....

          Comment

          • stoneringers
            Member
            • Dec 2008
            • 43

            #6
            Originally posted by Hairlocks
            Why do you need to replace a file in /bin and which one is it. You could quite easily break it by just trying to replace it, e.g. what library fils does the new one need, etc...
            I started out by wanting to put a new version of cccam onto my 500s.
            The current version was in /bin which I wanted to replace with a newer version. I expected that executable would be in /var/bin but it was not. I got around the problem by letting the image auto up date the cam itself. It reminded me of the problem that you have replacing executables in read-only mounted file systems.
            As it was about 20 years since I had worked on unix system at work, I could not remember the way around it.

            Comment

            Working...