LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2004, 09:35 PM   #1
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Rep: Reputation: 30
a question about packages


Just a quick question about upgrading a package.

I went to linuxpackages.net and grabbed the latest versions on PHP, MySQL, and Apache to install. Will the installpkg tool automatically overwrite previous installations of mysql and apache? Or would removing the old packages before installing be a good idea?

(not sure if slackware 9.1 comes with PHP)

Thanks,
Wes
 
Old 03-07-2004, 10:02 PM   #2
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Original Poster
Rep: Reputation: 30
Forget it. I took the risk (maybe not a huge risk, but something could have gone wrong) and everything went fine.
 
Old 03-07-2004, 10:04 PM   #3
rich442
Member
 
Registered: Apr 2003
Location: I-lan
Distribution: Oracle Server 7-1511/ Princeton IAS, 7.2
Posts: 83

Rep: Reputation: 18
It is likely that upgradepkg is your best bet. It fdoes both things that you mention. It first installs the new package and then erases the directories where the old packages resided. upgradepkg has some very helpful options. That cover every situation that the very familiar rpm program also has. If you were compiling from source, I would say just uninstall with pkgtool, but since you say you wish to upgrade one Slack package to another, it seems easier (to me) to do the operation with one step instead of two.

you shouldn't have to pass any options to upgradepkg since you only have three packages.

installpkg will not erase the old instances of php, and your other packages. It will your sysem full of old references to the packages that you had first (in addition to all the new folders). This can sometimes create a mess. Best of luck.

Last edited by rich442; 03-07-2004 at 10:10 PM.
 
  


Reply



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
Download packages question satimis Linux From Scratch 2 06-27-2005 09:35 PM
Packages Question megadeth Debian 4 05-02-2005 07:11 PM
question about packages.. snuffalufagus Slackware 3 11-08-2004 09:01 AM
Packages Question ericfx Slackware 1 09-04-2004 01:17 PM
Question about rpm packages fettouhi Linux - Software 6 07-07-2003 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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