-->
Home » , , , , , » How to customize a repository on a USB key.
Sunday
23 March 2014

How to customize a repository on a USB key.

If you have a decent sized USB stick - assuming around 4-8Gb (or external hard drive) you can set up a custom copy of the Ubuntu repository and configure that as a local repository as covered in AptGet/Offline/Repository on help.ubuntu.com.

To get the actual package files (the .deb files), I suggest using apt-mirror.

The apt-mirror package will help you create a custom mirror which should be smaller than the 30Gb of the full repository. Install the package:

sudo apt-get install apt-mirror

and edit its configuration file

gksudo gedit /etc/apt-mirror/mirror.list

virtualbox-ubuntu-02-installazione-vbox

Only include the repository sections you want. Here is a simple example that copies the binary .deb files from all 4 sections (main, restricted, universe and multiverse) as well as the latest bug fixes.

# apt-mirror configuration file
##
## The default configuration options (uncomment and change to override)
##
#
set base_path    /tmp/ubuntumirror
#

## Repositories to copy from -

## use a mirror so you don't overload the main server!!!

# Lucid binaries - no source files
deb http://archive.ubuntu.com/ubuntu lucid main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse


## Clean up older .deb files no longer in the archive
clean http://archive.ubuntu.com/ubuntu

It is guesstimated that you will need around 15Gb of space for all 4 sections, without the source.

I have put the path for all the .deb files to be /tmp, make sure you have enough space so your hard drive does not fill up (if your hard drive does fill up and your computer freezes, /tmp should be cleared with a reboot).

If you just want the main files, remove the restricted, universe and multiverse names from the configuration file.

If you are using a different architecture (you have 64bit, but your friend has 32 bit) then add the following at the start of the mirror.list configuration file:

set defaultarch i386

Once you have the apt-mirror configuration you want, run apt-mirror and go do something fun or life changing as it will take hours or days to get the repository (depending on your connection and the Ubuntu mirror you are using).

Once you have the .deb files, copy the files to your USB memory stick (or external hard drive) and set up the local repository as per the article mentioned previously.

SuccessFinal

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:

0 commenti:

Post a Comment

Random Posts

  • Gentoo Linux, Based on the Portage Management System
    04.02.2008 - 1 Comments
    The Gentoo Linux operating system is a Linux distribution based on the Portage package management system. The development project and its products are named after the Gentoo penguin. Gentoo package management is designed to be modular, portable,…
  • Tomahawk is a free, cross-platform and open source music player that combines your local library of music with those of several popular music streaming services.
    08.08.2012 - 0 Comments
    Tomahawk is a music player that fundamentally changes the way music is consumed and shared. It decouples the name of the song from the source it was shared from - and fulfills the request using all of your available sources. This creates a…
  • NethServer 7.7 released
    08.11.2019 - 0 Comments
    NethServer is a CentOS-based Linux distribution for servers. The product's main feature is a modular design which makes it simple to turn the distribution into a mail server and filter, web server, groupware, firewall, web filter, IPS/IDS or VPN…
  • Roxen WebServer is a full-featured open-source web server distributed under the GPL license.
    31.07.2014 - 0 Comments
    Roxen WebServer is a full-featured open-source web server distributed under the GPL license. It runs on a number of different operating systems including Windows, Linux, Solaris and Mac OS X. Some of the strong points of this server is: …
  • Zencafe is the best and the first Linux  solution that suitable for internet cafe.
    18.07.2010 - 0 Comments
    Zencafe GNU/Linux is a desktop Linux distribution designed specifically for public Internet cafés.Based on Slackware and Zenwalk Linux, it includes auto-recovery features, Internet café billing and management software, and other graphical system…
  • AdSEnse Analytics: Improve your site and increase marketing ROI.
    08.05.2009 - 0 Comments
    Google wants to help you understand your site's user base in order to improve your content and optimize your AdSense performance.Use Google Analytics to learn how your users are finding your site and how they interact with your content, make…
  • New themes and graphic tools for Ubuntu:  RenRot, RgbPaint, Ripmake and  Recoverjpg.
    29.07.2010 - 0 Comments
    RenRot, rename and rotate files according to EXIF tags.Renrot renames files according the flexible name template (allowing DateTimeOriginal and FileModifyDate EXIF tags, if they exist.Otherwise, the name will be set according to the current…
  • Best Linux blogging software.
    01.03.2013 - 0 Comments
    Everybody has opinions. For some reason, many people feel better about life if everybody's informed of those opinions in meticulous detail. The act of 'blogging' was born in the early 21st century when such folk discovered the…
  • MaCoPiX (Mascot Constructive Pilot for X) is a desktop mascot application for UNIX / X Window system
    21.06.2009 - 0 Comments
    MaCoPiX (Mascot Constructive Pilot for X) is a desktop mascot application for UNIX / X Window system.The special features of this application could be said as follows...- You can make window sitters , fixed desktop mascots, and, furthermore,…
  • GPic Image View,A Simple And Fast Image Viewer With Low Memory Usage
    05.01.2009 - 0 Comments
    This little program is not aimed to be powerful or feature-rich.It's aimed to replace the default image viewer of current desktop systems. Fast-startup, low memory usage, and simple user interface make it a good choice for default…

Recent Posts

Recent Posts Widget

Popular Posts

Labels

Archive

page counter follow us in feedly
 
Copyright © 2014 Linuxlandit & The Conqueror Penguin
-->