eb7e [Solved] How to upgrade packages with packages and ports with ports? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old March 3rd, 2010, 01:20
stuntgp2000 stuntgp2000 is offline
Junior Member
 
Join Date: Mar 2010
Location: Morocco
Posts: 3
Thanks: 6
Thanked 0 Times in 0 Posts
Default How to upgrade packages with packages and ports with ports?

Hi,

I'm new to FreeBSD, I downloaded and tried FreeBSD v8.0 for about two weeks now. I played with PC-BSD 7 before and it encouraged me to give FreeBSD another try. The last time I tried FreeBSD it was on v5.4, at that time I was still a new comer to Free and Open Source world. I've switched full-time to GNU/Linux since 2006 and I'm a Arch Linux user since mid 2008.

I've played PC-BSD 8.0 for a while but unfortunately it wasn't as polished as 7.0, maybe 8.1 will do better. But why wait for PC-BSD 8.1 when I can install FreeBSD 8.0 and customized to my needs!? and I've done just that

FreeBSD (v8.0) is a great operation system, it has excellent documentation and provide some advanced features. It was made to server.

Back to topic now. I did two installs, in the first I installed KDE 4.3, Firefox, GIMP etc using packages then decided to upgrade everything using Ports. It took 30 hours to finish on a 2.6Ghz, no big deal if it was going to be once in few months but that's not the case. KDE 4.4 for instance was released less than 3 weeks now and at the moment I'm writing this 4.4.1 was released. So I think grabbing everything from source and compiling it every now and then is not suitable for a single user using a single machine. I'm not criticizing here, it just not what I needed. Afterward, I did the second install this time using only packages and XFCE4 instead of KDE, so far so good but then again I used ports to install flash player and its deps and VBox-ose-additions and its deps.

1. Is there a way to upgrade applications, which were installed using packages, only by packages when they become available ?

2. Is there a way to let portupgrade or any other tool to specifically upgrade applications installed using ports without touching the ones that were installed using packages ?

It would be great if I can do that.

I'm sorry for this long post, thanks in advance for those who'll take the time to answer my questions. I'm honestly will to use FreeBSD no matter what it takes or costs.

Regards,

Med

Last edited by DutchDaemon; March 3rd, 2010 at 02:09. Reason: moved to the correct forum
Reply With Quote
  #2  
Old March 3rd, 2010, 02:14
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,932
Thanks: 30
Thanked 1,925 Times in 1,351 Posts
Default

Portupgrade doesn't differentiate between ports and packages once they're installed. Use the -PP flag to use packages only, or the -P flag to use a port when a newer package isn't available. You need to have an up-to-date ports tree. Alternatively, use the sysutils/bsdadminscripts port/package, which contains a package upgrade script that doesn't need the ports tree. This information has been posted quite a few times now, as recent as earlier today. Use the Search function next time. And post in the correct forum ("Installation and Maintenance of FreeBSD Ports or Packages" should be a no-brainer ...).
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old March 3rd, 2010, 03:13
stuntgp2000 stuntgp2000 is offline
Junior Member
 
Join Date: Mar 2010
Location: Morocco
Posts: 3
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Concerning bsdadminscripts I didn't find any good answer, just hints which seems like it's not the way to go.

Anyway, thanks for pointing that out.

Last edited by DutchDaemon; March 3rd, 2010 at 04:00.
Reply With Quote
  #4  
Old March 3rd, 2010, 17:29
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,178
Thanks: 43
Thanked 715 Times in 587 Posts
Default

Really? I've only read good things about pkg_upgrade, which is part of the bsdadminscripts port. The rest of the port may not be useful, but pkg_upgrade certainly is.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #5  
Old January 18th, 2011, 08:49
gryzor gryzor is offline
Junior Member
 
Join Date: Jan 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Greetings,

I am fairly new to FreeBSD too, and I have a suggestion to make : please let the handbook tell newbies about pkg_upgrade. Currently (from what I noticed) it seems the handbook only explains how to upgrade ports, not packages; and this is a bit confusing.

gryzor

Last edited by DutchDaemon; January 18th, 2011 at 16:42.
Reply With Quote
  #6  
Old January 18th, 2011, 11:58
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,847
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Quote:
Originally Posted by gryzor View Post
I am fairly new to freebsd too, and I have a suggestion to make : please let the handbook tell newbies about pkg_upgrade. Currently (from what I noticed) it seems the handbook only explains how to upgrade ports, not packages; and this is a bit confusing.
The confusion stems from not realizing that a package and a port are actually the same thing once they are installed. The only difference is how they are installed. The preferred and recommended way is to use ports, not packages.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
Reply

Tags
packages, ports, upgrading

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Upgrading packages without ports luckytaxi Installation and Maintenance of FreeBSD Ports or Packages 11 May 10th, 2010 18:34
upgrade all packages from ports ccc Installation and Maintenance of FreeBSD Ports or Packages 4 May 2nd, 2010 00:42
Ports or packages? ciol Installation and Maintenance of FreeBSD Ports or Packages 40 April 13th, 2010 06:47
[Solved] Updating: ports and packages nikolajg Installation and Maintenance of FreeBSD Ports or Packages 5 April 9th, 2010 13:38
A few ports and packages not available calande Installation and Maintenance of FreeBSD Ports or Packages 4 April 2nd, 2010 12:46


All times are GMT +1. The time now is 12:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0