"make deinstall" within /usr/ports/lang - need to recover default language installs

0 views
Skip to first unread message

Rob Navarro

unread,
Mar 19, 2013, 3:54:15 AM3/19/13
to freebsd-...@freebsd.org
Hi Chaps,

I typed "make deinstall" within the /usr/ports/lang directory of a
FreeBSD 9.0 and mistakenly lost Perl, Python, Ruby and a whole host of
default compiled languages.

How can I get back to the default FreeBSD default installed language
state (with Perl installed etc)?

Crossing my fingers that I need not re-install the OS...

Kind regards,

Rob

_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

David Demelier

unread,
Mar 19, 2013, 4:14:02 AM3/19/13
to Rob Navarro, freebsd-...@freebsd.org
lang/ contains all languages and so on ruby, lua, python, perl.. Of course
you removed perl since you typed make deinstall in that parent port tree.

You can type make install in /usr/ports/lang/perl5.14 to install it again.
You don't need to reinstall FreeBSD, you're not on Windows here, you can
repair everything :)

Note: there is no perl installed by default, it's in the ports for few
years now.

Regards,



2013/3/19 Rob Navarro <robn...@gmail.com>
--
Demelier David

Matthew Seaman

unread,
Mar 19, 2013, 4:19:23 AM3/19/13
to freebsd-...@freebsd.org
On 19/03/2013 07:54, Rob Navarro wrote:
> Hi Chaps,
>
> I typed "make deinstall" within the /usr/ports/lang directory of a
> FreeBSD 9.0 and mistakenly lost Perl, Python, Ruby and a whole host of
> default compiled languages.
>
> How can I get back to the default FreeBSD default installed language
> state (with Perl installed etc)?

Ummm.... the default state is with just the base system installed: no
extra languages like perl or python and no other additional software
packages.

> Crossing my fingers that I need not re-install the OS...

Nope. You absolutely do not need to do that -- all you did will have
affected the ports, which on FreeBSD is a distinct entity from the base
system.

To recover, you simply need to re-install the appropriate ports. If you
know what you want installed, then it's easy: you can just feed a list
of those ports into portmaster(8) or portupgrade(8).

If you don't know what you need installed in order to support various
end user programs, then there are various ways of checking that the
dependencies of the required ports are installed. For instance, if
you're using pkgng, you could run 'pkg check -da' At worst, and
requiring the least amount of extra software, just try re-installing the
packages in question. This should work, but you might end up doing a
lot of strictly unnecessary recompiling.

Matthew

Rob Navarro

unread,
Mar 19, 2013, 4:37:22 AM3/19/13
to freebsd-...@freebsd.org
Dear Chaps,

Thank you very much for responding so quickly. Curiously the freeBSD 9.0
was installed with the standard answers to a sysinstall session and did
contain a version of perl.

I now seem to be in the state of discovering which languages I need and
then re-installing. Is there a list/database for freeBSD 9.0 standard
sysinstalls languages that I can view and use to re-install (via pkg_add
-v -r perl etc) ?
[there must a config file for sysinstall to use itself]

Kind regards,

Rob

> lang/ contains all languages and so on ruby, lua, python, perl.. Of
> course you removed perl since you typed make deinstall in that parent
> port tree.
>
> You can type make install in /usr/ports/lang/perl5.14 to install it
> again. You don't need to reinstall FreeBSD, you're not on Windows
> here, you can repair everything :)
>
> Note: there is no perl installed by default, it's in the ports for few
> years now.
>
> Regards,


Reply all
Reply to author
Forward
0 new messages