Yes. In Debian based systems, creating local package repo is fairly easy.
I am not sure about OpenSUSE. However, OpenSUSE does provide an option to install packages directly from a directory. In Yast, in software management, you can add the repository of several types i.e DVD, Community Repo, USB, Local Harddisk Directory. etc.
The packages downloaded in OpenSUSE are stored in /var/cache/zypp/. Inside this path, there will be several different folders usually like OpenSUSE-12.2-Updates, OpenSUSE12.2-oss, Opensuse12.2-non-oss ..... These sub folders will have complete packages downloaded.
One thing to note is that, the packages will be there only if you select "Keep Downloaded Packages" option in Yast->Software Management. (Not remembering exact path in Yast). Otherwise packages will be deleted once installed.
So I usually follow these steps:
1. Enable the needed repo's via Yast and select option "Keep downloaded packages"
2. Edit /etc/zypp/zypp.conf. Search for commit.DownloadInAdvance and set it to true i.e commit.DownloadInAdvance = true
3. Install packages.
4. Copy the .rpms from /var/cache/zypp/ subfolders to a local directory say "Suse_12.2_packages".
Once step 4 is done, you can use that local directory as a local repository on another system and you can install packages from it.
|