Can't update GIT or FOG to newer versions.



  • Hey guys,
    I’ve been recently been working on getting FOG connected to my iSCSI NAS device and have finally got them connected. I’m ready to do a test image, to see if it is going to work, and I did a yum update, haven’t updated in a while, then I did a git pull and it said it was up to date, version 1.8.3.1. Then I ran ./installfog.sh and everything went fine with no errors but didn’t update. When the fog management link came up to update ,before hitting enter, it goes to the login page and not the update page. When I push enter it finishes without any issues. Actually, the first two lines, after hitting enter, were:

    • Setting up storage…OK
      ./installfog.sh: line 544: configureDHCP: command not found

    Not sure if that’s something. It’s been a bit since I updated so maybe I forgot something. Thanks for your help in advance.

    GIT ver: 1.8.3.1
    FOG ver: 6867
    Latest stable version is 1.2.0
    Latest svn version is 5505
    Latest git version is 7721



  • @Tom-Elliott said in Can't update GIT or FOG to newer versions.:

    rpm --nodeps -e git; yum -y install git

    OK, that went through successfully and I am updated with git and FOG. Thanks again Tom.


  • Senior Developer

    or
    yum reinstall git -y
    `


  • Senior Developer

    @ManofValor Try:

    rpm --nodeps -e git; yum -y install git



  • @Wayne-Workman

    [root@localhost opt]# ls
    fog  git  lost+found  rh  sophos-av  svn  teamviewer
    [root@localhost opt]# cd git
    [root@localhost git]# ls
    fogproject
    [root@localhost git]# cd fogproject
    [root@localhost fogproject]# ls
    [root@localhost fogproject]# git pull
    bash: /bin/git: No such file or directory
    [root@localhost fogproject]#
    

    I thought I did that. I deleted the old git directory and created a new one and this is what I get.

    [root@localhost git]# git pull
    bash: git: command not found...
    [root@localhost git]# cd fogproject
    [root@localhost fogproject]# git pull
    bash: git: command not found...
    [root@localhost fogproject]# git --version
    bash: git: command not found...
    [root@localhost fogproject]# git clone https://github.com/FOGProject/fogproject.git /opt/git/fogproject
    bash: git: command not found...
    [root@localhost fogproject]# sudo apt-get update && apt-get install git
    sudo: apt-get: command not found
    [root@localhost fogproject]# sudo yum update && yum install git
    Loaded plugins: fastestmirror, langpacks
    base                                                                                                                                                                                    | 3.6 kB  00:00:00
    epel/x86_64/metalink                                                                                                                                                                    |  12 kB  00:00:00
    epel                                                                                                                                                                                    | 4.3 kB  00:00:00
    extras                                                                                                                                                                                  | 3.4 kB  00:00:00
    remi                                                                                                                                                                                    | 2.9 kB  00:00:00
    remi-safe                                                                                                                                                                               | 2.9 kB  00:00:00
    updates                                                                                                                                                                                 | 3.4 kB  00:00:00
    (1/3): epel/x86_64/updateinfo                                                                                                                                                           | 556 kB  00:00:00
    (2/3): remi/primary_db                                                                                                                                                                  | 1.3 MB  00:00:01
    (3/3): epel/x86_64/primary_db                                                                                                                                                           | 4.1 MB  00:00:03
    Loading mirror speeds from cached hostfile
     * base: mirror.raystedman.net
     * epel: mirror.oss.ou.edu
     * extras: mirror.oss.ou.edu
     * remi: mirrors.mediatemple.net
     * remi-safe: mirrors.mediatemple.net
     * updates: mirror.oss.ou.edu
    No packages marked for update
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
     * base: mirror.raystedman.net
     * epel: mirror.utexas.edu
     * extras: mirror.oss.ou.edu
     * remi: mirrors.mediatemple.net
     * remi-safe: mirrors.mediatemple.net
     * updates: pubmirrors.dal.corespace.com
    Package git-1.8.3.1-6.el7_2.1.x86_64 already installed and latest version
    Nothing to do
    [root@localhost fogproject]# yum install git
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
     * base: mirror.raystedman.net
     * epel: mirror.utexas.edu
     * extras: mirror.oss.ou.edu
     * remi: mirrors.mediatemple.net
     * remi-safe: mirrors.mediatemple.net
     * updates: pubmirrors.dal.corespace.com
    Package git-1.8.3.1-6.el7_2.1.x86_64 already installed and latest version
    Nothing to do
    

    I think I messed something up. When I deleted git from the opt directory, and it didn’t work, I deleted it in a couple other areas like:
    /usr/bin/git
    /usr/share/git-core

    …and one other area that I forgot. I screwed it up, didn’t I?


  • Moderator

    @ManofValor You would just follow the instructions in the “Upgrade to trunk” article. But one extra step, just deleting the old one you have and making a new directory to put it in.



  • @Wayne-Workman How do I get rid of everything? I deleted the git dir in the opt folder and in another place , but when I search for git I get a lot of files and folders.



  • @Tom-Elliott
    Yes I did.


  • Moderator

    @ManofValor my advice would be to just simply delete the entire get directory and re pull the entire thing from GitHub


  • Senior Developer

    @Tom-Elliott You’re doing get reset --hard in the fog git directory?




  • Senior Developer

    What happens if you run:
    git reset --hard; git pull; cd bin/installfog.sh -y


Log in to reply
 

393
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.