[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KDE install from a directory



On Sunday 01 April 2001 07:20, Viktor Lakics wrote:
> I am new to Debian. Just installed potato, and want to put KDE2.1.
> I have all the KDE deb packages from kde.debian.net in a directory
> /data/KDE.
>
> How should I put this path into my /etc/apt/sources.list for
> installing KDE from there (and not directly from the internet)?
>
> I want to do "apt-get install kdebase task-kde" to do this...
>
> Thanks in advance. -- Viktor

Yes, you can put it in your /etc/apt/sources.list. (I do it all the 
time!) But the format would be something like this:

deb file:/data/KDE ./

First, HOWEVER, you have to create the magic Packages (or 
Packages.gz) file. The program to do this is dpkg-scanpackages 
(provided by the package "dpkg-dev").

If I understand your file system correctly, the first steps would be:

debian:/$ cd /data/KDE
debian:/data/KDE$ dpkg-scanpackages . /dev/null > Packages

This creates a Packages file out of all the .deb's located below the 
directory /data/KDE. (The "/dev/null" is to just disable some 
abstruse dpkg-scanpackages option.) Then you add the line I mentioned 
above to your sources.list.

----EXCERPT /etc/apt/sources.list----

# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
deb file:/data/KDE ./

<SNIP, SNIP>

----END EXCERPT----

To make this setup work properly, you probably have to put this line 
before any "deb http://"; or "deb ftp://"; sources. The you run:

debian:/$ apt-get update

After this you can presumably (if you have really downloaded all of 
Ivan's stuff), run:

debian:/$ apt-get install task-kde kdebase

That's all there is to it.



Reply to: