Announcement

Collapse
No announcement yet.

Making Local Repository

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

    Making Local Repository

    This is based on APT HOWTO
    http://www.debian.org/doc/manuals/ap.../index.en.html
    ===> 2.2 How to use APT locally

    There is also > Ubuntu Documentation: Personal Repositories


    Note
    user is your log in name.
    gutsy is part of Kubuntu code name (hoary, breezy, dapper, edgy, feisty, gutsy, hardy...)

    Kubuntu wiki
    http://en.wikipedia.org/wiki/Kubuntu


    1) Make folders:
    /home/user/debs/
    and
    /home/user/dists/gutsy/debs_for_gutsy/binary-i386/

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

    3) Generate package info:

    a) if your debs are in the /home/user/debs. You can use in the konsole (konsole is in the home folder - /home/user/):
    Code:
    dpkg-scanpackages debs /dev/null | gzip > /home/user/dists/gutsy/debs_for_gutsy/binary-i386/Packages.gz
    b) or full path to the debs. Packages are in the /home/user/debs
    Code:
    dpkg-scanpackages /home/user/debs /dev/null | sed s/"\/home\/user\/"//g | \
    gzip > /home/user/dists/gutsy/debs_for_gutsy/binary-i386/Packages.gz
    4) Add your local repository in the /etc/apt/sources.list

    Alt + F2 and type kdesudo kate /etc/apt/sources.list
    (kdesu kate /etc/apt/sources.list)
    Add: deb file:///home/user/ gutsy debs_for_gutsy

    or

    Synaptic:
    Settings > Repositories
    URI: file:///home/user/
    Distribution: gutsy
    Sections(s): debs_for_gutsy


    or

    Adept:
    Adept > Manage Repositories > | Third-Party Software | > Add


    4b) Alternative to the 4, using sources.list.d

    You can create mysources.list (or whatever.list) file in the /etc/apt/sources.list.d/:
    (kdesudo kate /etc/apt/sources.list.d/mysources.list)

    And add: deb file:///home/user/ gutsy debs_for_gutsy

    man sources.list(5)
    SOURCES.LIST.D

    The /etc/apt/sources.list.d directory provides a way to add sources.list entries in seperate files that end with .list. The format is the same as for the regular sources.list file.
    5) Update package lists.

    6) Install (by Apt/Aptitude/Adept/Synaptic/Whatever).


    When you have new debs -> Do 2 and 3 then 5 and 6.


    Dpkg/Apt/Aptitude/Adept/Synaptic

    FAQ: Package Managers

    Dpkg
    dpkg - package manager for Debian.

    Apt
    apt - Advanced Package Tool. APT is a management system for software packages.

    Aptitude
    A highly configurable console front-end for Debian APT. Aptitude is a text-based interface to the Debian GNU/Linux package system.

    Adept
    Adept is a GUI to the Advanced Packaging Tool for KDE. Adept is developed by Peter Ročkai and is sponsored by Canonical Ltd. through the Kubuntu project.

    Synaptic
    Synaptic is a graphical package management program for apt. It provides the same features as the apt-get command line utility with a GUI front-end based on Gtk+.


    GDebi KDE
    https://launchpad.net/gdebi

    From Kubuntu 7.10 - Gutsy Gibbon
    http://kubuntu.org/announcements/7.10-release.php
    New for Kubuntu 7.10 is a KDE front end to the amazing APT package manager for third party packages. GDebi KDE makes it easier to install Debian based packages (.deb files) onto your system with just a click of the mouse. No more command line hassles when trying to manually install a package, and GDebi KDE even takes care of those pesky dependencies so you don't have to. Using GDebi KDE is simple, go to the directory where you have downloaded your package and just click on the file. Installation takes off, and you are on your way to a new application.
    You need:
    gdebi-core, Simple tool to install deb files
    gdebi lets you install local deb packages resolving and installing
    its dependencies. apt does the same, but only for remote (http, ftp)
    located packages.
    and
    gdebi-kde, Simple tool to install deb files
    This package contains the KDE user interface.
    Note
    gdebi does not support multi-package installations
    https://bugs.launchpad.net/ubuntu/+s...ebi/+bug/37649

    gdebi should search for .debs in current folder
    https://bugs.launchpad.net/ubuntu/+s...bi/+bug/134331


    Links:

    Topic: OpenOffice 2.2.3
    http://kubuntuforums.net/forums/inde...opic=3086717.0

    Topic: Adept for offline installation
    http://kubuntuforums.net/forums/inde...opic=3087546.0

    Topic: FAQ: Kubuntu without internet connection
    http://kubuntuforums.net/forums/inde...opic=3085805.0

    Bugs in gdebi in ubuntu
    https://bugs.launchpad.net/ubuntu/+source/gdebi
    Before you edit, BACKUP !

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

    #2
    Re: Making Local Repository


    I follow the guide but when I use apt-get install after answer the question (yes/no) it don't find the file.

    Impossible to find file:///home/user/packages//home/user/packages/debs/opera_9.26-20080218.6-shared-qt_en_i386.deb File not found

    I didn't use the same folders as the guide (after user I make another directory named packages and hardy instead of gutsy)

    "I make this steps"
    mkdir /home/user/packages/debs/
    and
    mkdir /home/user/packages/dists/hardy/debs_for_hardy/binary-i386/

    2) Copy .deb files to the /home/user/packages/debs/

    3) Generate package info:
    :~$ dpkg-scanpackages /home/user/packages/debs /dev/null | gzip > /home/user/packages/dists/hardy/debs_for_hardy/binary-i386/Packages.gz

    4) Add your local repository in the /etc/apt/sources.list
    file:///home/user/packages/ hardy debs_for_hardy

    Tell me if I make a mistake because I don't find it.

    Comment


      #3
      Re: Making Local Repository

      Tell me if I make a mistake because I don't find it.
      No, you are not making mistake.

      If you are using full path in the "Generate package info" then working command is:
      Code:
      dpkg-scanpackages /home/user/packages/debs /dev/null | sed s/"\/home\/user\/packages\/"//g | \
      gzip > /home/user/packages/dists/hardy/debs_for_hardy/binary-i386/Packages.gz
      Sed is used to remove /home/user/packages/ from the Packages.gz.
      sed - stream editor for filtering and transforming text
      Without sed, package manager is trying to find:
      /home/user/packages//home/user/packages/debs/opera_9.26-20080218.6-shared-qt_en_i386.deb

      Added to the How to.
      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


        #4
        Re: Making Local Repository


        Thanks

        Comment


          #5
          Re: Making Local Repository

          mpg@MIKED5:~$ sudo dpkg-scanpackages debs /dev/null | gzip > /home/mpg/dists/hardy/debs_for_hardy/binary-i386/Packages.gz
          [sudo] password for mpg:
          sudo: dpkg-scanpackages: command not found
          mpg@MIKED5:~$ [/quotre]
          It doesnt work, how come
          My Local Repository<br />Forums I am active on<br />Please help me with this!!!!!!!!!!!!!!!!!!!!!!

          Comment


            #6
            Re: Making Local Repository

            /usr/bin/dpkg-scanpackages is a part of the package: dpkg-dev
            package building tools for Debian

            This package contains the tools (including dpkg-source) required to unpack, build and upload Debian source packages.
            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


              #7
              Re: Making Local Repository

              Okay thanks.

              Should I use this thread or this one for future discussion about this?
              My Local Repository<br />Forums I am active on<br />Please help me with this!!!!!!!!!!!!!!!!!!!!!!

              Comment


                #8
                Re: Making Local Repository

                i didnt work for me
                when i input "sudo apt-get update"
                the result is the repository from the file is ignored...
                how do i fix it...
                thanks
                im using kubuntu intrepid live usb

                Comment


                  #9
                  Re: Making Local Repository

                  i didnt work for me
                  when i input "sudo apt-get update"
                  the result is the repository from the file is ignored...

                  Tell a bit more What was the error message(s) ??

                  Did you get something like this?
                  Code:
                  sudo apt-get update
                  ...
                  Ign file: jaunty/debs_for_jaunty Packages
                  Err file: jaunty/debs_for_jaunty Packages
                  File not found
                  ...
                  W: Failed to fetch file:/home/<YOUR_USERNAME_HERE>/packages/dists/jaunty/debs_for_jaunty/binary-i386/Packages
                  File not found

                  E: Some index files failed to download, they have been ignored, or old ones used instead.
                  sudo died with exit status 100
                  That is because apt can't find the package index file - Packages.gz - from the directory: /home/<YOUR_USERNAME_HERE>/packages/dists/jaunty/debs_for_jaunty/binary-i386.
                  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


                    #10
                    Re: Making Local Repository

                    Personal Repository - kde servicemenu

                    Wrapping the local/personal repository to a service menu: http://www.kubuntuforums.net/showthr...-Dolphin/page3



                    Right clicking a .deb package...



                    Package list is wrapped up...
                    ------>If the root rights are needed...
                    ------------->What package manager will be used to examine and install the packages...


                    Package database is updated....


                    ... installation - are you sure.
                    Last edited by Rog131; Mar 26, 2012, 04:54 AM.
                    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


                      #11
                      Re: Making Local Repository

                      Would it also work with muon?
                      Multibooting: Kubuntu Noble 24.04
                      Before: Jammy 22.04, Focal 20.04, Precise 12.04 Xenial 16.04 and Bionic 18.04
                      Win XP, 7 & 10 sadly
                      Using Linux since June, 2008

                      Comment


                        #12
                        Re: Making Local Repository

                        Where would the sources.list be located for the personal repository, and if it uses the /etc/apt/sources.list I assume it would/could access all of the packages in that list?
                        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                        – John F. Kennedy, February 26, 1962.

                        Comment


                          #13
                          Re: Making Local Repository

                          Muon

                          Would it also work with muon?

                          You tell me


                          At here.

                          With the Maverick Muon the installation stops to the notification screen

                          after that, nothing seems to happen.

                          With the Lucid and an older Muon (1.0 alpha 1) the installation was succesful.

                          The developer is telling:
                          ...we can see where we stand for Kubuntu 11.04. It’ll be worth the wait...

                          kdesudo <application>

                          The servicemenu is simply making an application call with the kdesudo. If you want to use the konsole/apt-get you could give the konsole as the "package manager" and the service menu will start the konsole with the root rights.


                          If you don't want to start anything with the service menu, give a non application name to the question: "What package manager would you like to use ?"

                          non application name = null, oops,hi-there, ...
                          rog@ammu2500ll:~$ null
                          null: command not found
                          rog@ammu2500ll:~$ oops
                          oops: command not found
                          rog@ammu2500ll:~$ hi-there
                          hi-there: command not found
                          Last edited by Rog131; Mar 26, 2012, 04:58 AM.
                          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


                            #14
                            Re: Making Local Repository

                            Not a Double D

                            Where would the sources.list be located for the personal repository...
                            Rule of thumb

                            Don't edit (mess) the original setting files if possible - use the separate additional (d directory) files.

                            man sources.list
                            SOURCES.LIST.D

                            The /etc/apt/sources.list.d directory provides a way to add sources.list entries in separate files. The
                            format is the same as for the regular sources.list file. File names need to end with .list and may only
                            contain letters (a-z and A-Z), digits (0-9), underscore (_), hyphen (-) and period (.) characters. Otherwise they will be silently ignored.
                            (Earlier > /etc/sudoers.d/ (and all those d directories))


                            The service menu is adding the sources info to the /etc/apt/sources.list.d/$USER-personal-repository.

                            $USER = your username, konsole:
                            Code:
                            echo $USER
                            Last edited by Rog131; Mar 26, 2012, 04:59 AM.
                            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


                              #15
                              Re: Making Local Repository

                              The service menu is adding the sources info to the /etc/apt/sources.list.d/$USER-personal-repository.
                              "Ah, thank you", says GreyGeek with appreciation, genuflecting to superior knowledge!

                              Wouldn't the best use for this be for those deb package downloaded from non-repository sites?
                              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                              – John F. Kennedy, February 26, 1962.

                              Comment

                              Working...
                              X