بخش اول
روش 1. نرم افزار Keryx (http://forum.ubuntu.ir/index.php/topic,15546.msg119657.html#msg119657)
Keryx is a portable, cross-platform package manager for APT-based (Ubuntu, Debian) systems. It provides a graphical interface for gathering updates, packages, and dependencies for offline computers. Keryx is free and open source. You can get Keryx here: http://keryxproject.org
2. ویژگی Scripting (https://help.ubuntu.com/community/Synaptic/PackageDownloadScript) در سیناپتیک
Short instructions:
* Launch Synaptic on the offline computer
* Mark the packages you wish to install
* Select File->Generate package download script
* Save the script to your USB key
* Take the USB key to an online Linux computer and run the script there from the USB key. It will download only the packages required by the offline computer to the USB key.
* Insert the USB key into the offline computer
* Launch Synaptic and click on File->Add downloaded packages
* Select the directory on your USB key containing the downloaded ".deb" files and press Open, The packages will be installed.
توضیح اضافه:
Note: If you don't have access to a PC with GNU/Linux or emulating/virtualizing GNU/Linux (Cygwin, VMware, VirtualBox, Qemu, etc), just open the script with a text editor and enter all the URLs you see in your browser to download the corresponding packages.
If you have all the necessary libraries and/or dependencies, the simplest way is of course to just download the .deb package you need, just as you would with a Windows installer, and double-click the package to install it with GDebi.
All Ubuntu packages are available on http://packages.ubuntu.com/ and http://www.debian.org/distrib/packages.
روش 3. apt-get offline repository (https://help.ubuntu.com/community/AptGet/Offline/Repository)
**************************************
دانلود کامل یک سایت (http://forum.ubuntu-ir.org/index.php?topic=505.0) برای بروز کردن آفلاین:
الف از ترمینال
wget http://Address -k -c -r -p
wget -crpkl0 -nd http://Address
به جای صفر(=نهایت عمق) میتوانید مقدار دیگری بذارید که میزان نفوذ به لینکها برای دانلود را تعیین میکند.
wget -cpk -nd http://Address/page
برای دانلود یک صفحهی خاص از یک سایت، معادل ...Save Page As در بروزرها
wget -A jpg,png http://Address
wget -R jpg,png http://Address
A: دانلود فایلهای مشخص شده، مثلاً Png & Jpg از آدرس ذکر شده
R: دانلود همهی فایلهای موجود در آدرس غیر از فایلهای مشخص شده
ب با نرمافزار
WebHTTrack (http://www.httrack.com)
https://addons.mozilla.org/en-US/firefox/addon/scrapbook
نصب آفلاین - بخش دوم
4. نرمافزار SuperDeb Creator
http://hacktolive.org/wiki/SuperDeb_Creator
SuperDeb Creator is a program that creates SuperDebs that can be installed offline, shared on CDs, DVDs, etc... Their main goal not only to provide an easy-to-use installer to users that don't have an internet connection, but also to provide an easy way to share software in a de-centralized way, reducing dependency on online software repositories
روش 5.
اگر دسترسی به اینترنت پرسرعت ندارید یا می خواهید برنامه ای را برای دوستی که اینترنت پرسرعت ندارد دانلود و نصب کنید می توانید از این روش استفاده کنید:
روی کامپیوتر هدف (کامپیوتری که GPRS ،dial-up یا به طور کلی سرعت پایین دارد و می خواهید برنامه ها را روی آن نصب کنید) این دستور را اجرا کنید:
sudo apt-get --print-uris --yes install PACKAGE_NAME | grep ^\' | cut -d\' -f2 >mydownload.txt
به جای PACKAGE_NAME اسم بسته مثلا vlc را بنویسید. به این ترتیب سیستم به جای اینکه خود بسته ها رو دانلود کنه لینکشون رو میگیره و توی فایل متنی mydownload.txt کپی می کنه. حالا لیست بسته ها را که در فایل mydownload.txt ذخیره شده را روی کامپیوتری که اینترنت پرسرعت دارد به wget می دهیم. wget ابزار دانلود از طریق ترمینال است:
wget --input-file mydownload.txt
و این طوری فایل متنی mydownload رو به عنوان خوراک به یک Download Manager در اینجا wget دادهایم تا همهی بسته ها را یکجا دانلود کنه. حالا بسته های دانلود شده را به کامپیوتر هدف منتقل کرده و در یک فولدر جدید کپی کنید. در داخل فولدر یک ترمینال باز کرده و این دستور را اجرا کنید:
sudo dpkg -i *.deb
منبع: webupd8.org/Get list of packages and dependencies (http://www.webupd8.org/2009/11/get-list-of-packages-and-dependencies.html)
این همون ویژگی توپ apt هست که نه YUM فدورا و نه Zypper توی openSUSE ازش پشتیبانی نمیکنن. البته تا جایی که من خبر دارم Zypper هم به فکرش هست
روش 6.
دوستانی که دنبال نصب آفلاین بسته ها هستند برنامه جدیدی به نام sushi huh می تونه این کا رو به راحتی در لینوکس و ویندوز انجام بده و علاوه بر اوبونتو روی توزیعهای مطرح دیگه هم کار می کنه:
http://sushi-huh.sourceforge.net/
(http://sushi-huh.sourceforge.net/data/images/conceptual.png)
روش 7.
Offline APT Package Manager: http://apt-offline.alioth.debian.org/
apt-offline is an Offline APT Package Manager for APT based systems, i.e. mostly Debian and Debian derived distributions. apt-offline can fully update/upgrade your disconnected Debian box without the need of connecting it to the network. (sudo apt-get install apt-offline)
Related Link: http://ubuntuforums.org/showthread.php?t=310020
8. استفاده از دیسک مخازن اوبونتو که میتوانید بخرید(فروشگاه اینترنتی سیتو) و یا به جایی سفارش دهید که برایتان دانلود کند و بعد: http://up.iranblog.com/Files/c76692077445428f80f7.pdf
9. استفاده از APTonCD برای برداشتن نرمافزار(های) نصب شده روی رایانهای دیگر که از همان ورژن اوبونتوی شما استفاده میکند.
http://aptoncd.sourceforge.net
10. دانلود نرمافزار مورد نظر با همهی Dependencyهاش:
Go to http://apt-web.dahsy.at/ and Just select the base distro, mirror and type in the package name which you wish to download. This will list all the deb package you would need to install and download.
Once the all the packages are downloaded, just run the below from the directory where all the packages have been downloaded.
sudo dpkg --force-overwrite -i *.deb
+ نرمافزار USPC (http://forum.p30world.com/showthread.php?t=294261) هم برای نصب آفلاین هست که گویا دیگه توسعه داده نمیشه!
ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ___ـــــــــــــــــــــــــــــــــــــ
سوال: آیا کامپایل از سورس(Compile from source) نیاز به Dependencyها داره؟