Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > Everything BSD
Reload this Page Botchy script?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Everything BSD For all discussions regarding Free/NetBSD and OpenBSD.

Reply
 
Thread Tools Display Modes
Old 08-12-2007   #1 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 288
Botchy script?

Some months ago I wrote a script to ease configuring a fresh FreeBSD install and it contained among others the following lines:

Code:
# installing gnome
pkg_add -r gnome2
cd /usr/ports/x11/gnome2
make clean
make install clean
From what I know now about ports and packages, this is a superfluous solution, isn't it? I am inclined to have instead:

Code:
# installing gnome
cd /usr/ports/x11/gnome2
make clean
make install clean
May I assume that running make clean and make install clean in sequence is generally a good idea to save on disk space?

Last edited by technossomy; 08-12-2007 at 10:56 AM. Reason: Added question.
technossomy is offline   Reply With Quote
Old 08-13-2007   #2 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
Quote:
Originally Posted by technossomy
Code:
# installing gnome
pkg_add -r gnome2
cd /usr/ports/x11/gnome2
make clean
make install clean
From what I know now about ports and packages, this is a superfluous solution, isn't it?
It appears that you're first installing the package and then attempting to install the port (which should build but then fail at install time).

Quote:
Originally Posted by technossomy
I am inclined to have instead:

Code:
# installing gnome
cd /usr/ports/x11/gnome2
make clean
make install clean
Or just install the package (your choice). The larger DEs take quite a long time to install from ports, depending on your box's horsepower.

Quote:
Originally Posted by technossomy
May I assume that running make clean and make install clean in sequence is generally a good idea to save on disk space?
The first make clean doesn't hurt. It recursively cleans up cruft from the port's last build. The make install clean is a standard way to install a port (without a third-party utility). For a handy third-party utility, check out
/usr/ports/ports-mgmt/portmaster.

See the manpages for ports(7). This contains a good summary about how the make targets work.
anomie is offline   Reply With Quote
Old 08-13-2007   #3 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 288
Thanks for the response.
technossomy is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run parent shell script in -x ~debug mode and all child scripts that it calls Sangal-Arun Linux Programming & Scripting 2 08-04-2007 11:26 AM
Retaining Exported Variables from a Spawned Script Inside of an Expect Script tetsuo13 Linux Programming & Scripting 8 06-22-2007 04:37 PM
Please help with some scripting questions thebigc Linux Programming & Scripting 1 05-29-2006 09:00 PM
Directory listing - Calling shell script from a CGI script seranmca Linux Programming & Scripting 1 08-10-2005 02:16 PM
pppd troubleshooting petitcolin Linux Networking 3 05-19-2004 11:25 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 04:28 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0