LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2012, 01:03 AM   #1
Ziaullah
LQ Newbie
 
Registered: May 2012
Location: Karachi, Sindhi, Pakistan
Posts: 3

Rep: Reputation: Disabled
Post How to install / uninstall git on Slackware?


I am using Linux Slackware 2.6.29.6-smp, with command (text) mode. I have used SCO Unix version 5 and Linux Red Hat 11, but stick with this Slackware.

On this server I am trying to install git-1.7.5.1, I have tried the steps mentioned in the given books, sites, http://git-scm.com/book/en/Getting-Started
and videos,(tried tar, apt-get, install) but not successful to get it installed.

However when i used git --version it is showing git version 1.6.4., but I am not finding any directory of installed program.

Please help me, how I can get rid of it and install a clean setup.

Ziaullah
QA Led
 
Old 05-30-2012, 03:50 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,627

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Check for /var/log/packages/git* and it it's there, read it. It tells you where the files are, and you can use 'uninstallpkg <filename>' to remove it.

Otherwise, try 'which git'
If it's in /usr/bin, files will probably be in /usr/something.
The other choices are /usr/local, or /opt.
I have slackware and the directory /usr/libexec/git-core is of interest but there's man pages & docs in volume.
 
Old 05-30-2012, 04:34 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Removing a Slackware <package>.t*z (git) : 1) su <password>
2) removepkg git
 
Old 05-31-2012, 03:07 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,627

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Ooops! Sorry about that

removepkg is right. (Burning the candle at both ends here for some time now).
 
Old 08-18-2014, 05:41 PM   #5
swhp
LQ Newbie
 
Registered: Jan 2014
Location: Indonesia
Distribution: slackware
Posts: 10

Rep: Reputation: Disabled
Is there another methode to upgrade git?
 
Old 08-19-2014, 06:17 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

Rep: Reputation: Disabled
Why? What's wrong with the version that you've got already with Slackware?
 
Old 08-31-2014, 09:18 AM   #7
swhp
LQ Newbie
 
Registered: Jan 2014
Location: Indonesia
Distribution: slackware
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by brianL View Post
Why? What's wrong with the version that you've got already with Slackware?
Well, git that i using now it's still good. But the version was to old maybe because the latest release was ver 2.1. But mine it still ver 1.8. So i just want to try update my git.
 
Old 09-01-2014, 03:16 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,627

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
You are about to break the first rule of maintenance:
"If it ain't broke, don't fix it!"

Presuming you decide to go ahead, git is bound to have a git of it's latest software.
git clone <whatever-url>
Follow instructions if it's a non-gnu build system; If there is no configure script, you need the first line, otherwise skip it.

Code:
xmkmf -a
./configure <options>
make <options>
mkdir -p /tmp/package
make DESTDIR=/tmp/package install
cd /tmp/package
makepkg ../git-<cobbled-together-version>
Then you use upgradepkg to swap them. You can repeat this process with other programs if you wish until your system is thoroughly borked to find out why the rest of us don't bother :-). The nice thing about this approach is you can uninstall yours cleanly and put Pat's packages back.
 
1 members found this post helpful.
Old 09-12-2014, 06:52 AM   #9
swhp
LQ Newbie
 
Registered: Jan 2014
Location: Indonesia
Distribution: slackware
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
You are about to break the first rule of maintenance:
"If it ain't broke, don't fix it!"

Presuming you decide to go ahead, git is bound to have a git of it's latest software.
git clone <whatever-url>
Follow instructions if it's a non-gnu build system; If there is no configure script, you need the first line, otherwise skip it.

Code:
xmkmf -a
./configure <options>
make <options>
mkdir -p /tmp/package
make DESTDIR=/tmp/package install
cd /tmp/package
makepkg ../git-<cobbled-together-version>
Then you use upgradepkg to swap them. You can repeat this process with other programs if you wish until your system is thoroughly borked to find out why the rest of us don't bother :-). The nice thing about this approach is you can uninstall yours cleanly and put Pat's packages back.
Thank you and for real i just know about the rule of maintenance, i think i will have slackware on virtualbox to test everything rather i broke the rule
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
[SOLVED] Best strategy to install uninstall in Slackware ethereal1m Slackware 9 04-29-2010 08:23 AM
How to install and uninstall packages in zenwalk/slackware deathalele Linux - Software 2 11-15-2008 03:07 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
Does Slackware program install/uninstall check novice26 Slackware 8 04-01-2005 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration