DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th September 2008
paul-lkw's Avatar
paul-lkw paul-lkw is offline
Real Name: Paul.LKW
Port Guard
 
Join Date: May 2008
Location: Hong Kong
Posts: 18
Thanked 0 Times in 0 Posts
Default The location of Backup files from portupgrade

Hi all:
Every time when I portupgrade I see a message "Backing up the old version", and I think it waste my much of space and so I want to delete it and what is the PATH ?

Thx.
Reply With Quote
  #2   (View Single Post)  
Old 19th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 337
Thanked 32 Times in 30 Posts
Default

Haven't really looked into it, but I think that that backup is removed immediately when the portupgrade itself succeeds. It is just a backup for backing out of a failed portupgrade (reverting to the previously installed version).
Reply With Quote
  #3   (View Single Post)  
Old 20th September 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Thanked 36 Times in 34 Posts
Default

DutchDaemon is correct. Portupgrade creates a temporary backup package in case the newer version of the port fails to install.
Reply With Quote
  #4   (View Single Post)  
Old 20th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 337
Thanked 32 Times in 30 Posts
Default

By the way, running portsclean -CDD from time to time will get rid of previously downloaded (but now upgraded) tarballs of your installed ports.
Reply With Quote
  #5   (View Single Post)  
Old 21st September 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Doesn't anyone read man pages:
Code:
     PACKAGES	       Base directory where portupgrade creates packages.
		       Default is ``$PORTSDIR/packages''.
And:
Code:
-b
     --backup-packages	    Keep backup packages of the old versions.  These
			    are kept in a temporary directory.	See PKG_TMPDIR
			    and TMPDIR in the ENVIRONMENT section.
So, by default, the temp packages are stored under /tmp. If PACKAGES is set in the environment (via shell rc files, for instance), and you use -b, then the packages are left behind in the directory you specify.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

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
Xlib - Strange location? SunSpyda OpenBSD General 5 3rd June 2009 06:54 PM
backup freeBSD 7.0 using Backup Exec ccc FreeBSD General 2 25th April 2009 09:23 PM
Location for CVSup supfile. bsdnewbie999 OpenBSD General 5 26th June 2008 11:32 AM
location for wpi-firmware-.tgz bsdnewbie999 OpenBSD General 1 18th June 2008 04:20 AM
Both versions installing in same location, & can't delete jaymax FreeBSD General 5 9th June 2008 06:25 PM


All times are GMT. The time now is 01:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick