Announcement

Collapse
No announcement yet.

Making Local Repository

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

    #16
    Re: Making Local Repository

    I'm using the local repo to examine/install packges when there are lot of packages with dependencies not pointing to the official repositories. i.e when the "dpkg -i *.deb" doesn't look like a healthy option.

    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


      #17
      Step by Step

      Ubuntu community docs: https://help.ubuntu.com/community/Repositories/Personal


      Needed: dpkg-dev
      Description: Debian package development tools
      This package provides the development tools (including dpkg-source)
      required to unpack, build and upload Debian source packages.
      The dpkg-scanpackages is part of the dpkg-dev.

      Code:
      :~$ apt-file search dpkg-scanpackages
      debian-cd: /usr/share/debian-cd/tools/my-dpkg-scanpackages
      dpkg-dev: /usr/bin/dpkg-scanpackages
      Steps

      0) Open a terminal/konsole window to the deb package directory.

      At here it is: Local_repo

      1) Who am I ?

      Konsole:
      Code:
      whoami
      Output at here:
      oneline
      2) Where am I ?

      Konsole:
      Code:
      pwd
      Output at here:
      /home/oneline/Local_repo
      3) Write the Packages.gz list

      Konsole - Note the dot !
      Code:
      dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
      Output at here:
      dpkg-scanpackages: warning: Packages in archive but missing from override file:
      dpkg-scanpackages: warning: kde-service-menu-video-thumb-fixer thumbflow
      dpkg-scanpackages: info: Wrote 2 entries to output Packages file.
      4) Add the local repository to the sources list

      Konsole/Krunner (oneline-personal-repository)
      Code:
      kdesudo kate /etc/apt/sources.list.d/oneline-personal-repository.list
      Add there the location of the local repository - Note the dot ! At here:
      Code:
      deb file:/home/oneline/Local_repo ./
      save and exit.

      The software properties should show the information.



      5) Update the package database.

      Code:
      sudo apt-get update
      6) Install the wanted packages.

      Log of sudo apt-get install kde-service-menu-video-thumb-fixer thumbflow
      Mon Mar 26 14:37:07 2012

      Reading package lists...
      Building dependency tree...
      Reading state information...

      The following extra packages will be installed:
      perlmagick sng
      Suggested packages:
      pngcrush pngmeta gif2png
      The following NEW packages will be installed:
      kde-service-menu-video-thumb-fixer perlmagick sng thumbflow
      0 upgraded, 4 newly installed, 0 to remove and 8 not upgraded.
      Need to get 202 kB/293 kB of archives.
      After this operation, 902 kB of additional disk space will be used.
      Do you want to continue [Y/n]?

      WARNING: The following packages cannot be authenticated!
      kde-service-menu-video-thumb-fixer thumbflow
      Install these packages without verification [y/N]?
      There are warnings as the packages are unauthenticated.
      Last edited by OneLine; Mar 26, 2012, 06:20 AM.
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment

      Working...
      X