ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Shell Scripting to be done for verifying the software version and also not to update

    IT Discussion
    shell scripting
    5
    72
    10.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LakshmanaL
      Lakshmana @scottalanmiller
      last edited by

      @scottalanmiller Yes.I am looking to see only the right version.
      Other version should be exist in this system if exists means it should be automatically removed from the concerned path automatically
      .I define the right version is there by comparing the version present at the path where the software is present.

      scottalanmillerS 2 Replies Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Lakshmana
        last edited by scottalanmiller

        @Lakshmana said:

        @scottalanmiller Yes.I am looking to see only the right version.

        How do you plan to look for other versions?

        LakshmanaL 1 Reply Last reply Reply Quote 0
        • LakshmanaL
          Lakshmana @scottalanmiller
          last edited by

          @scottalanmiller In my test machine the firefox updated automatically to 38 version.This was happened after stopping updates at GUI of the firefox.So only I am trying to remove the other version from the system.

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Lakshmana
            last edited by

            @Lakshmana said:

            .I define the right version is there by comparing the version present at the path where the software is present.

            That's an odd definition. Doesn't really match what you state that you want to do. Presumably if there were multiple versions or different versions present they would be at different paths.

            This implies the opposite of wanting to know if there are multiple versions.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @Lakshmana
              last edited by

              @Lakshmana said:

              @scottalanmiller In my test machine the firefox updated automatically to 38 version.This was happened after stopping updates at GUI of the firefox.So only I am trying to remove the other version from the system.

              Did it change the path?

              LakshmanaL 1 Reply Last reply Reply Quote 0
              • LakshmanaL
                Lakshmana @scottalanmiller
                last edited by

                @scottalanmiller No the path was not changed.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Lakshmana
                  last edited by

                  @Lakshmana said:

                  @scottalanmiller No the path was not changed.

                  Okay, so if the goal is to make sure that the binary at the one specific path has not changed versions is a bit more clear of a goal.

                  dafyreD 1 Reply Last reply Reply Quote 0
                  • dafyreD
                    dafyre @scottalanmiller
                    last edited by

                    @scottalanmiller I went through the same set of instructions that he used. And when you run the Firefox v31 binary, it automatically updates to the latest version (although I did not run the application as root, so I am uncertain how it did this, lol).

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @dafyre
                      last edited by

                      @dafyre said:

                      @scottalanmiller I went through the same set of instructions that he used. And when you run the Firefox v31 binary, it automatically updates to the latest version (although I did not run the application as root, so I am uncertain how it did this, lol).

                      Likely it does not install as root or it does not set root only permissions for updating.

                      dafyreD 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        I understand the updating issue and why he needs to stop that and monitor it. It's how does he want to deal with lots of other issues like people downloading their own Firefox or running other instances. That's where the questions are.

                        1 Reply Last reply Reply Quote 0
                        • dafyreD
                          dafyre @scottalanmiller
                          last edited by

                          @scottalanmiller In my VM, I extracted a firefox-31.tar.bz2 and moved it to /opt/firefox ... and then as my normal user, I ran firefox, and it updated anyhow.

                          But I found there is a setting in the channel-prefs.js file you can add to disable the automatic update.

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @dafyre
                            last edited by

                            @dafyre said:

                            @scottalanmiller In my VM, I extracted a firefox-31.tar.bz2 and moved it to /opt/firefox ... and then as my normal user, I ran firefox, and it updated anyhow.

                            But I found there is a setting in the channel-prefs.js file you can add to disable the automatic update.

                            Yup, he had determined that you could do that, I believe. Now he is just required to monitor it too.

                            You could also use the filesystem to stop updates as well.

                            1 Reply Last reply Reply Quote 0
                            • LakshmanaL
                              Lakshmana
                              last edited by

                              My firefox opens only 31 version but the GUI of the mozilla firefox is not available and I need to go to terminal to open the mozilla.Why?

                              scottalanmillerS handsofqwertyH 2 Replies Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @Lakshmana
                                last edited by

                                @Lakshmana said:

                                My firefox opens only 31 version but the GUI of the mozilla firefox is not available and I need to go to terminal to open the mozilla.Why?

                                That's really a new question and not related to the original. I would open a new thread for that.

                                Is the issue as simple as you don't have an icon for it? How have you tried starting from the GUI?

                                1 Reply Last reply Reply Quote 0
                                • handsofqwertyH
                                  handsofqwerty @Lakshmana
                                  last edited by

                                  @Lakshmana said:

                                  My firefox opens only 31 version but the GUI of the mozilla firefox is not available and I need to go to terminal to open the mozilla.Why?

                                  This is because you're running a version you didn't install via apt-get. You'd have to put all the right executables in the right places manually for this.

                                  LakshmanaL 1 Reply Last reply Reply Quote 0
                                  • LakshmanaL
                                    Lakshmana @handsofqwerty
                                    last edited by

                                    @handsofqwerty how to do that

                                    handsofqwertyH 1 Reply Last reply Reply Quote 0
                                    • handsofqwertyH
                                      handsofqwerty @Lakshmana
                                      last edited by

                                      @Lakshmana said:

                                      @handsofqwerty how to do that

                                      Try copying the Firefox binary to /usr/bin. You might need to make a shortcut for it manually in Ubuntu.

                                      1 Reply Last reply Reply Quote 0
                                      • handsofqwertyH
                                        handsofqwerty
                                        last edited by

                                        Here is a good explanation of the Linux directory structure:
                                        http://www.thegeekstuff.com/2010/09/linux-file-system-structure/

                                        1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller
                                          last edited by

                                          The desktop is going to need a specific link. Not sure how Ubuntu does this and it will vary by the desktop that you have chosen. But it might be something really simple like just making a symlink to the right folder.

                                          handsofqwertyH 1 Reply Last reply Reply Quote 1
                                          • handsofqwertyH
                                            handsofqwerty @scottalanmiller
                                            last edited by

                                            @scottalanmiller said:

                                            The desktop is going to need a specific link. Not sure how Ubuntu does this and it will vary by the desktop that you have chosen. But it might be something really simple like just making a symlink to the right folder.

                                            Yeah, that's all I think should be necessary. I haven't used Ubuntu Desktop in years. I've been exclusively CLI for a few years now.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 4 / 4
                                            • First post
                                              Last post