LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2003, 07:04 AM   #1
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
replacing packetage


Is there a way i can remove existing packages instead of reinstalling?
How can i tell what i should remove so there is no conflict with version and stuff?
How do i get the initial conf file? i tought i could issue ./configure but it keeps my old conf file.

I am installing a LAMPS server (Linux, Apache, Mysql, PHP, SSh)
and it never works so far, i keep on reinstalling the distro before i try to properly install and configure it, but it is a pain...

Dan
 
Old 07-18-2003, 03:42 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Definitely! In fact, it's suggested to fix your problem rather than re-install.

Ok, so you might wanna give us some more info so we can help, how are you installing your packages? Are you using the RPM's on the install CD? If not, you might look into that. Then, to remove/add the packages, all you have to do is type:
rpm -e filename
To remove, and then to install:
rpm -ivh filename.rpm



Cool
 
Old 07-27-2003, 01:34 PM   #3
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Well, mostly they are .tar.gz package. I know that for RedHat distro it is recomended to use rpm but i find some flaws with some packetage (like webmin) so i stick to tar.gz
 
Old 07-27-2003, 11:33 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ok, I suggest you look into using something called checkinstall (can be found at www.freshmeat.net ) and then when you install from tar.gz (tarballs) you can easily uninstall with the help of checkinstall (Read the sites documentation, great tool).

Cool
 
Old 07-28-2003, 06:05 AM   #5
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
it seems to be supporting slack deb and rpm package only, it doesn't say a word about RedHat...
Does that can be any good for me?
 
Old 07-28-2003, 06:14 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
RedHat is rpm

RPM stands for:
RedHat Package Manager

Cool
 
Old 07-28-2003, 06:17 AM   #7
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
yes, i know that redhat uses rpm packages but i install tarballs on my redhat... so i'am not using rpm isn't it?
 
Old 07-28-2003, 06:41 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69


Checkinstall will take a tarball, and at the point where you normally type:
make install
You type:
checkinstall
At that point checkinstall will take over, and during it's 'magic' will ask you if you have Slackware (tgz) Debian (.deb) or RedHat (rpm) so you say Redhat and it creates an RPM, installs it with the RPM install deal, and then it gets recorded just like other RPM's.

Give it a try, you'll see what I mean, read the documentation though, basically, it's like this:
./configure
make
make test (make check whatever)
And then instead of:
make install
You will be typing:
checkinstall

Cool
 
Old 07-28-2003, 08:06 AM   #9
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 31
Are there some other ways to uninstall or check the programs installed by tar.gz file?
Thank you Master.
 
Old 07-28-2003, 08:42 AM   #10
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Yes, cool...

this is quite confusing for me thow... i had a tgz package and it turned out to be a rpm...
to remove the package, i now have to use rpm -e, packaging is quite misterious to me
 
Old 07-28-2003, 10:46 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by captainstorm
Are there some other ways to uninstall or check the programs installed by tar.gz file?
Thank you Master.
Occasionally a programmer will include a make uninstall target which will simply do the opposite of the make install. It seems to be rare though, and not always on the applications you'd expect it to be. Really the best I've found is checkinstall, works great and seems to be on the 3 systems that need it most (deb, RH, SLack).

Cool
 
Old 07-28-2003, 10:47 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by c0c0deuz
Yes, cool...

this is quite confusing for me thow... i had a tgz package and it turned out to be a rpm...
to remove the package, i now have to use rpm -e, packaging is quite misterious to me
Can be quite confusing at first, but once you use it 2 or 3 times, it's second nature and in the end, an excellent add on and tool for your linux box.

Cool
 
  


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
replacing one distro for another. merfmeister Linux - Software 7 02-02-2012 11:32 AM
replacing binaries kamtono Linux - Security 13 08-01-2005 02:21 PM
Replacing a HD, will Lilo go away? a10waveracer Linux - General 2 05-15-2005 04:49 PM
replacing cd by dvd CloudBuilder Linux - Hardware 6 05-17-2004 04:03 PM
replacing Zackdude Linux - General 1 09-08-2003 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 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