Skip to main content

Making A Local Software Repository For Ubuntu or Debian System By Using Aptoncd


The main difference between Windows and Linux is in the Software Management. In Windows, we can install any software easily by clicking the installer package and then enter the serial number (if proprietary) and then next next and finished.


In Linux, it is little more complicated. In Linux, between one package and one another packages depend each other and then create a technical condition called Dependency Chain. Why is Software Management in Linux more complicated than in Windows? The answer is Linux and its FOSS is an open source project and it is undertaken by so many programmers in the world. One programmer create one package and the other create the other one that depends on the other programmer work. In simple word, Linux and FOSS is a worldwide team work and it is impossible to create a centralized software management and standardization like in Windows, unless the whole Linux community merged and create a mega enterprise and create a new one standard of software management for Linux.

By the way, there are many popular software managements in Linux but because I'm an Ubuntu/Debian user, now I want to share about How to make a local repository in Ubuntu / Debian and use it as an offline installer. And the answer is Aptoncd and dpkg-dev.

Aptoncd is a simple tool to backup the cached dpkgs after we have installed packages in a Debian system. This tool is very simple. Here are the simple steps to create an Ubuntu / Debian local repository :

  1. Update our repository database

sudo apt-get update

  1. Install all packages we need and don't forget to install aptoncd and dpkg-dev

sudo apt-get install aptoncd dpkg-dev

  1. After all finished, open aptoncd and select create. A process to read and generate the cache of Debian packages we have installed by online will appear. If we have installed a lot of packages, the process could need some minutes. Just be patient.

  2. Next, select burn but in the last, don't burn it to any optical media. Just let it be an ISO.

  3. Open the ISO by using archive manager and extract the folder Packages. Put the folder in Desktop. Rename it to a name we like (ex : precise, quantal etc)

  4. Last, generate the DEBs by dpkg-dev command. As an example, I rename the folder as precise.

sudo dpkg-scanpackages precise /dev/null | gzip -9c > precise/Packages.gz

  1. Now, we have a local repository and could be used anytime when we need to reinstall our Debian or Ubuntu system. Just move the folder into our local harddisk. To use the repository, just simply put the local address into our apt database (/etc/apt/sources.list). Open and edit the repository database by the command :
    sudo gedit /etc/apt/sources.list
    and put our local repository address in. The format of the address must be like this :

deb file:/location/location folder/

Example, I put the folder precise in a storage media called /media/d in a subdirectory softwares/linux. So the complete address is /media/d/softwares/linux/precise. So the apt address format must be like this :

deb file:/media/d/software/linux precise/

Last, generate the apt database by command sudo apt-get update and then install the packages we need by using apt : sudo apt-get install package_name.

  1. That's it. I hope this little thing will be useful. Enjoy :)

Comments

Popular posts from this blog

Ubuntu Kylin 19.04 Review : A Gorgeous Windows 10 Clone

It's been quite a while since the last post I wrote in this blog. My daily life prevents me to write another stuff about Linux Desktop, and now I'm curious to take a look to the Ubuntu Kylin 19.04. Ubuntu is always be my favorite distro. It supports huge number of hardwares, it has probably the largest Linux software repository. It is also --the most important thing-- very easy to install, even for beginners.  But for some couple of years, because of technical reason, I stopped to play around with the Ubuntu releases. I stood for KDE Neon and became my primary OS because of its simplicity and the look. Few days ago Ubuntu has released its newer version, Ubuntu 19.04 codenamed Disco Dingo. I'm yes impressed by the progress Ubuntu developer has made, especially the way they arrange the GNOME desktop to match the Ubuntu theme. But the most interesting flavor of this release is Ubuntu Kylin. It's an official Ubuntu flavor, designed for Chinese People with its own...

How To Speed Up Your KDE Plasma Desktop (KDE4)

KDE is one of the oldest desktop environment in Linux. While GNOME (the other desktop that as old as KDE) is trying to built its own style of user interface, KDE from the beginning seems to mimics the Microsoft Windows' "classic" user interface. Thus, KDE has its own user base, especially for them who still in love with the Windows' philosophy : a simple desktop, with a single taskbar in the bottom, and a start menu in the left. Personally, I love KDE. It's gorgeous and eyecandy. But sometimes, I feel KDE is little bit slow in my older hardwares. So, after some experiences, I've found some tweak how to make KDE Plasma Desktop Runs Faster . 1. Change The Compositing Engine  Go to System Settings>Desktop Effect>Advanced , and change the Compositing type from OpenGL 2.0 to XRender. 2. Remove All Bloatware Apps There are some uneeded apps installed in Kubuntu (my favorite KDE distro) and you could safely remove them. Here are my list : ...

Q4OS 4.6 "Gemini" Review: A Real Hidden Gem

Distro hopping is a fun adventure. It's a pure joy you can only find in GNU/Linux world. It's a nature you want to escape from what I call 'comfort ecosystem'. You need to play, trying something new even for a few little differences. For a long time I've been using Ubuntu family as my daily driver. The main reason is probably just same as any other Ubuntu user: it's reliable. You can't go wrong with Ubuntu. It works almost in any device, even for the newest one. It is the ultimate Linux distro you can rely on. However, sometimes, you will feel bored. The temptation to flirt with other new distro is unbearable. There are a lot of hot new Linux distros waiting to try.  A Real Hidden Gem I've known this distro for a quite long time. At first, it offered Trinity Desktop as the main desktop, which brings me the sweet memories about KDE3. It is simply fast, stable, almost without any issue, and it is based on Debian. I install it on my old machine and I love t...