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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-30-2012, 01:03 AM
|
#1
|
LQ Newbie
Registered: May 2012
Location: Karachi, Sindhi, Pakistan
Posts: 3
Rep: 
|
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
|
|
|
05-30-2012, 03:50 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,721
|
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.
|
|
|
05-30-2012, 04:34 AM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Welcome to LQ.
Removing a Slackware <package>.t*z (git) : 1) su <password>
2) removepkg git
|
|
|
05-31-2012, 03:07 AM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,721
|
Ooops! Sorry about that
removepkg is right. (Burning the candle at both ends here for some time now).
|
|
|
08-18-2014, 05:41 PM
|
#5
|
LQ Newbie
Registered: Jan 2014
Location: Indonesia
Distribution: slackware
Posts: 10
Rep: 
|
Is there another methode to upgrade git?
|
|
|
08-19-2014, 06:17 AM
|
#6
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep: 
|
Why? What's wrong with the version that you've got already with Slackware?
|
|
|
08-31-2014, 09:18 AM
|
#7
|
LQ Newbie
Registered: Jan 2014
Location: Indonesia
Distribution: slackware
Posts: 10
Rep: 
|
Quote:
Originally Posted by brianL
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.
|
|
|
09-01-2014, 03:16 AM
|
#8
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,721
|
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.
|
09-12-2014, 06:52 AM
|
#9
|
LQ Newbie
Registered: Jan 2014
Location: Indonesia
Distribution: slackware
Posts: 10
Rep: 
|
Quote:
Originally Posted by business_kid
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 
|
|
|
All times are GMT -5. The time now is 06:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|