Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Dec 2004
    Posts
    323

    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.

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    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.

  3. #3
    Linux User
    Join Date
    Dec 2004
    Posts
    323
    Thanks for the response.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •