LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2008, 07:07 PM   #1
Teenna
LQ Newbie
 
Registered: Nov 2008
Location: I'm not really sure
Distribution: Debian Etch 4.0
Posts: 17

Rep: Reputation: 0
modify the definitions set on the package's control file directly for your repository


I was reading the following to learn about apt use. I made my /root/debs dir successfully. But I got lost in the "package's control file"
- How do I modify this definitions on this file that I don't know where is or if I have to created?
- What is an override file and where I have to put it?
- How do I use /dev/null to call dpkg-scanpackages?

I had been googling about installing things but some stuff is not in Synaptic (like win32codecs), although I found .deb files.

I respectfully ask for help. I'm trying to learn.
Thanks.


"2.2 How to use APT locally

Sometimes you have lots of packages .deb that you would like to use APT to install so that the dependencies would be automatically solved.

To do that create a directory and put the .debs you want to index in it . For example:

# mkdir /root/debs

You may modify the definitions set on the package's control file directly for your repository using an override file. Inside this file you may want to define some options to override the ones that come with the package. It looks like follows:

package priority section

package is the name of the package, priority is low, medium or high and section is the section to which it belongs. The file name does not matter, you'll have to pass it as an argument for dpkg-scanpackages later. If you do not want to write an override file, just use /dev/null. when calling dpkg-scanpackages.

Still in the /root directory do:

# dpkg-scanpackages debs file | gzip > debs/Packages.gz

In the above line, file is the override file, the command generates a file Packages.gz that contains various information about the packages, which are used by APT. To use the packages, finally, add:

deb file:/root debs/

After that just use the APT commands as usual. You may also generate a sources repository. To do that use the same procedure, but remember that you need to have the files .orig.tar.gz, .dsc and .diff.gz in the directory and you have to use Sources.gz instead of Packages.gz. The program used is also different. It is dpkg-scansources. The command line will look like this:

# dpkg-scansources debs | gzip > debs/Sources.gz

Notice that dpkg-scansources doesn't need an override file. The sources.list's line is:

deb-src file:/root debs/"
 
Old 12-03-2008, 09:45 PM   #2
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
if your trying to add things like w32codec,flash,realplayer,java??Easier to just add a etch repo from http://debian-multimedia.org/ to your apt sources list.

Last edited by stratotak; 12-03-2008 at 10:00 PM.
 
Old 12-04-2008, 12:02 PM   #3
Teenna
LQ Newbie
 
Registered: Nov 2008
Location: I'm not really sure
Distribution: Debian Etch 4.0
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stratotak View Post
if your trying to add things like w32codec,flash,realplayer,java??Easier to just add a etch repo from http://debian-multimedia.org/ to your apt sources list.
Hi, I did what you suggested, went to debian-multimedia.org. I copy-paste this
Code:
deb ftp://ftp.debian-multimedia.org stable main
in my /etc/apt/sources.list, saved and run apt-get update on root terminal and this happened:

Code:
W: GPG error: ftp://ftp.debian-multimedia.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems
I also did it with:

Code:
deb http://www.debian-multimedia.org stable main
but same results.

I do appreciate any more suggestions about how to fix this.
Thanks
 
Old 12-04-2008, 12:38 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Ack now how'd I manage that double post..

Last edited by farslayer; 12-04-2008 at 12:44 PM.
 
Old 12-04-2008, 12:43 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
aptitude install debian-multimedia-keyring

Once you install the gpg key for the repository that warning will go away.

Since Debian etch was released the developers recommend you use aptitude rather than apt-get for various reasons. The two tools operate almost identically from the command line. http://algebraicthunk.net/~dburrows/.../rn01re01.html




There is no reason to setup a local apt repository, unless you are planning to update numerous Debian machines on your internal network and wish to manage the updates locally and save internet bandwidth. For one or two machines it's really not worth the effort.
 
Old 12-05-2008, 05:32 PM   #6
Teenna
LQ Newbie
 
Registered: Nov 2008
Location: I'm not really sure
Distribution: Debian Etch 4.0
Posts: 17

Original Poster
Rep: Reputation: 0
WOW....

Thanks for blowing a lot of clouds from my head.

I took a Linux online course from Linux.org (Beginners) and I know it is from 2005 but I never thought about checking changes in some commands. Anyway a discovered Debian Wiki http://wiki.debian.org/ recently and some other places I have to check out, starting with http://algebraicthunk.net/~dburrows/.../rn01re01.html

I did what you suggest:

Code:
aptitude install debian-multimedia-keyring
and it worked fine.

Thanks again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I set up a "box.net" style central file repository??? callagga Linux - Software 9 01-29-2008 09:48 PM
Does 2.6 kernel support control register directly? LeoneVictor Linux - Kernel 0 04-18-2007 03:34 AM
KDE Keyboard Definitions File nymusicman Linux - Software 3 02-11-2007 08:37 PM
Version control - decentralized repository jantman Programming 8 07-26-2006 12:10 PM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration