Announcement

Collapse
No announcement yet.

How can I create my own repository with only chosen software?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I create my own repository with only chosen software?

    I would like to start my own repository so that I dont have to go on the internet to get software every time. Some people just dont have internet and other people's connections are slow.
    Also, I dont want all the software on the repository, but only certain software.
    And, How can I be sure to get all the dependencies?

    Thanks a lot for all who can help
    Johann

    #2
    Re: How can I create my own repository with only chosen software?

    Easiest way (to get some of k/x/ubuntu packages):

    a.k.a Get DVD

    Why ? --->

    From psychocats excellent Ubuntu page:

    Which *buntu to pick?
    http://www.psychocats.net/ubuntu/whichbuntu
    What's the difference between the Ubuntu CD and DVD?
    The CD usually contains only one version of Ubuntu (Ubuntu, Kubuntu, Xubuntu, Edubuntu) and is either the Desktop CD, the Alternate CD, or the Server CD. The DVD contains the entire Main and Restricted repositories (read more about Main and Restricted here), which means it has Ubuntu, Kubuntu, Xubuntu, and Edubuntu, allowing you to install any or all four versions without needing an internet connection.

    Making local repository:

    2.2 How to use APT locally
    http://www.debian.org/doc/manuals/ap...g-scanpackages

    How i'm using local repository (for some packages):

    1) make folders:

    /home/user/debs/
    /home/user/dists/feisty/deb_does_feisty/binary-i386/

    2) copy .deb files to the /home/user/debs/

    3) Generate package info:
    Code:
    :~$ dpkg-scanpackages debs /dev/null | gzip > Packages.gz
    4) copy/move Packages.gz to the /home/user/dists/deb_does_feisty/binary-i386/

    5) Edit /etc/apt/sources.list
    Add: deb file:///home/user/ feisty deb_does_feisty

    6) Update package lists
    Code:
    :~$ sudo apt-get update
    Or with aptitude/synaptic/adept.

    When you add packages to the local repository (2) generate package info (3) and move (4) it to the /home/user/dists/deb_does_feisty/binary-i386/. Update package lists (6)


    Hard part
    How can I be sure to get all the dependencies?
    With lot of hard work and beer.

    Ubuntu packages
    http://packages.ubuntu.com/
    This site provides you with information about all the packages available in the Ubuntu archive.
    From there you get: Other Packages Related to your package/file (depends/recommends/suggests)

    Or/and

    5.1 Discovering package names
    http://www.debian.org/doc/manuals/ap...search.en.html

    And to just find out what packages it depends on:

    # apt-cache depends penguin-command
    penguin-command
    Depends: libc6
    Depends: libpng2
    Depends: libsdl-mixer1.1
    Depends: libsdl1.1
    Depends: zlib1g
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: How can I create my own repository with only chosen software?

      I maybe just guessing but if you want to install (k)ubuntu on someones machine and he/she does not have a descent internet connection then I would suggest installing from the DVD. You won't need the internet for languages packs etc.

      Then if you have your machine setup the way you want it ie. drivers, multimedia, browsers, email clients, etc then try this out:

      http://www.linuxtoday.com/infrastruc...70601126OSDBHL

      and


      http://aptoncd.sourceforge.net/

      makes for a good read and may be helpfull in your endevours.

      It is just my 2c's worth and I hope that helps

      Cheers
      Fintan

      HP Pavilion dv6 core i7 (Main)
      4 GB Ram
      Kubuntu 18.10

      Comment


        #4
        Re: How can I create my own repository with only chosen software?

        Ya know I am glad someone asked this because I was wondering myself not because I have a slow internet connection but I wanted a local repository that had all the programs I use and install after installing a version of Ubuntu that way I don't have to download them everytime I setup a new machine. Also it helps when setting up a friends or familys system if they don't have a fast connection.

        Good question.

        Comment


          #5
          Re: How can I create my own repository with only chosen software?

          Well, looks like aptoncd is for you

          HP Pavilion dv6 core i7 (Main)
          4 GB Ram
          Kubuntu 18.10

          Comment


            #6
            Re: How can I create my own repository with only chosen software?


            I took a look at apton and it's very interesting. I think it's a great piece of software for burning the repo's/deb's.

            The one thing I thought of almost instantly though, for the normal user who just wants to have a back-up of his system to install is either creating an image or remastering and voila!

            Since this is about repositories and having them accessible, apton is definitely a winner and ty for pointing it out.

            Oh, another great tool for packaging is Alien, for those that wish to create packages from either other packages or tarballs. This might work well with creating your own repository base and something to consider for those packages you may have wanted that are only available in say RPM or tarball, convert them over to .deb for an easier install next round, or even before you install them.

            Keep your stick on the ice...

            Landor

            Comment


              #7
              Re: How can I create my own repository with only chosen software?

              Also of interest may be the APT package cache in /var/cache/apt/archives.
              For external use only.

              Comment

              Working...
              X