From owner-freebsd-questions@freebsd.org Sat Jul 11 21:23:36 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC7C399794F for ; Sat, 11 Jul 2015 21:23:36 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A20D16AB for ; Sat, 11 Jul 2015 21:23:35 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from desk8.phess.net ([95.88.11.237]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LZhsq-1YZEIz2nGO-00lWMG; Sat, 11 Jul 2015 23:18:13 +0200 From: Patrick Hess To: arnab bhowmick Cc: "freebsd-questions@freebsd.org" Subject: Re: set desktop environment offline Date: Sat, 11 Jul 2015 23:18:10 +0200 Message-ID: <1972221.VQjP5m1Gfa@desk8.phess.net> User-Agent: KMail/4.14.3 (FreeBSD/10.1-RELEASE-p10; KDE/4.14.3; i386; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:olr8xKbIHICMAlHJHvspVKx+6vJHGOO3XZlE2JiXrZjL/awfHKp ueOVNTw+G4mj8BlMTKB8qmv3+jW2DpAPjew/GRNmpOV/4BRSOsXtH0u77H9l7wQkgDQ3Mq/ ISx1mQWO0tX9CDxMKVv6QXNbEILrfzRutx9+HgdqMZRd2WtTwa0rXrGrbigNny4lvUFsr+K QeHoz/xe0+jniyuuHVkWg== X-UI-Out-Filterresults: notjunk:1;V01:K0:P4w6p8LmVZE=:en4zfTcIYxhyVTQBwXTIEB coo079Q7Nt9QP/6D0d4jS5dE7zCYbhLuMD0PbloJ0+gfaEx8QKqXcghv3xJ5QBgYCdAkw58kq QEb8VW9ZyaTJPizm2uVCOF5KHiHQeDzSE/NgorKX83kaIlHgWm3jXaohKQsirRXJMHHjxcW8A PENilSjbRFHo/DPhb6/QK5rvy3mB8l7zh3L+sFnmzeagvvpHUMTNkGVXiqXPLmU4147vNm5lE x5SNki6AnbbOZwjMdq9waSotKPZnPzEwOc38wED3Pv6NVK/DIG+01af1bCoIHjQ3jTkedPkWs WfefItkUcjsIvfG2y5IWRWSACfxNcClcz2jsJmuNnXElx7N9FcygmoqMb8BMRnwv7H6BDrqgU p7OW1IBvAV5MHL4VT3ILkTaBD0jXdSXMoJ0S8ZOsetGaIlmy3UDXkkOOxP6z3IIN2YgUvheE0 7IcZYWzb7GSDfD8726H4WLV8CUX+uGqxfdX/Xd0YDT00Lppnmq0+YUGFd6WzchmeYnyDK4sZ8 WAd10Olv4tzQ8+ohAZMzehtR5urtK0ElqbRD6sWcOTe2jgGecU3G+QIHWJOKdgkz+kIYi4dGp TEBfT9mwKIIglaXQUdi83I+MdskWZ/9BNuvFkbbbVZjF74UfU42p4dftc6wjOs33mH7IGO1oH UOa7VQjqARl6Ohvh1PcQQuoWd2OwWCcOYDrsNMKttcr6lrS3utPvkHm+swagZIwoyWDM= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2015 21:23:37 -0000 arnab bhowmick wrote: > Now is there any process which I can do to crate a backup of these > desktop environment in CD or pen drive? Which I can use to install > to re-install these environment in offline mode or more clearly > without Internet?? If you simply want to be able to reinstall those packages without having to download them all over again, have a look at your /var/cache/pkg directory. That's where "pkg install" keeps copies of all the packages it has downloaded. You can just copy this directory over to a pen drive, an external disk, a file server etc., and then turn it into your very own package repository as follows: # pkg repo /path/to/directory/with/all/your/packages Next, create a file named "repo.conf" in the same directory: custom: { url: "file:/path/to/directory/with/all/your/packages", enabled: yes, } Then, on any machine you want to install packages from this "offline" repository, create a /usr/local/etc/pkg.conf file that contains a single line like this: REPOS_DIR [ /path/to/directory/with/all/your/packages ] Now when running "pkg install", it will use your local packages instead of downloading them from the online repository. You will also be able to bootstrap pkg(8) this way without requiring an active Internet connection. Furthermore, "pkg upgrade" will work fine with this approach too, making for easy offline upgrades. Patrick