Can't update GIT or FOG to newer versions.
-
What happens if you run:
git reset --hard; git pull; cd bin/installfog.sh -y
-
-
@Tom-Elliott You’re doing
get reset --hard
in the fog git directory? -
@ManofValor my advice would be to just simply delete the entire get directory and re pull the entire thing from GitHub
-
@Tom-Elliott
Yes I did. -
@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.
-
@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.
-
[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?
-
@ManofValor Try:
rpm --nodeps -e git; yum -y install git
-
or
yum reinstall git -y
` -
@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.