Re: .deb packages from outside debian/dists/ ?

2002-02-12 Thread Andreas Hetzmannseder
On Sun, Feb 10, 2002 at 12:04:01AM -0500, Ben Collins wrote:
 On Sat, Feb 09, 2002 at 08:31:50PM -0800, Paul E Condon wrote:
  I want to install some software that I downloaded as a .deb file,
  but it did not come from a Debian mirror. Instead it came from a ftp
  download from a developer's web site. The only way I have ever used
  dselect, dpkg, or apt-get have been to get stuff from a Debian
  mirror and then unpack and install it. This happened all
  automatically. Now I have a file in my home directory. Where do I
  put it? What commands and options do I use?
 
 dpkg -i blah.deb
 [...]

If you decided to uninstall 'blah.deb', wouldn't you run into trouble?

One may create a 'Packages' file for some extra deb-package:

localhost:~# cd /usr/local
localhost:/usr/local# mkdir debs
localhost:/usr/local# cd debs
localhost:/usr/local/debs# mkdir package_name
localhost:/usr/local/debs# cp path/to/debfile package_name
localhost:/usr/local/debs# dpkg-scanpackages package_name\
  some_empty_override_file\
  debs/  Packages

Additional entry in /etc/apt/sources.list:

deb file:/usr/local debs/

This way installing or uninstalling may be more properly achieved.

At least I have been doing it this way, and it has been working fine.
Any comments?

Kind regards,
Andreas.



Re: .deb packages from outside debian/dists/ ?

2002-02-12 Thread Craig Dickson
begin  Andreas Hetzmannseder  quotation:

  dpkg -i blah.deb
  [...]
 
 If you decided to uninstall 'blah.deb', wouldn't you run into trouble?
 
 One may create a 'Packages' file for some extra deb-package:
 
 localhost:~# cd /usr/local
 localhost:/usr/local# mkdir debs
 localhost:/usr/local# cd debs
 localhost:/usr/local/debs# mkdir package_name
 localhost:/usr/local/debs# cp path/to/debfile package_name
 localhost:/usr/local/debs# dpkg-scanpackages package_name\
   some_empty_override_file\
   debs/  Packages
 
 Additional entry in /etc/apt/sources.list:
 
 deb file:/usr/local debs/
 
 This way installing or uninstalling may be more properly achieved.
 
 At least I have been doing it this way, and it has been working fine.
 Any comments?

Just one: it's completely unnecessary. dpkg can uninstall any
currently-installed package. It has no need, and probably completely
ignores, the original .deb file.

Craig


pgp2jDwLxi7fz.pgp
Description: PGP signature


Re: .deb packages from outside debian/dists/ ?

2002-02-12 Thread David Z Maze
Andreas Hetzmannseder [EMAIL PROTECTED] writes:
 On Sun, Feb 10, 2002 at 12:04:01AM -0500, Ben Collins wrote:
 dpkg -i blah.deb
 [...]
 
 If you decided to uninstall 'blah.deb', wouldn't you run into
 trouble?

Of what sort?  dpkg doesn't need the package file to uninstall an
installed package.

 One may create a 'Packages' file for some extra deb-package:
...
 Additional entry in /etc/apt/sources.list:

The only thing this gains you is having your packages not be
advertised as obsolete or locally installed in dselect or aptitude.
It also might be a win if you're sharing custom packages between
several machines using a local Web server or a shared filesystem.

-- 
David Maze [EMAIL PROTECTED]  http://people.debian.org/~dmaze/
Theoretical politics is interesting.  Politicking should be illegal.
-- Abra Mitchell



Re: .deb packages from outside debian/dists/ ?

2002-02-12 Thread Andreas Hetzmannseder
On Tue, Feb 12, 2002 at 09:32:38AM -0800, Craig Dickson wrote:
 begin  Andreas Hetzmannseder  quotation:
 
   dpkg -i blah.deb
   [...]
  
  If you decided to uninstall 'blah.deb', wouldn't you run into trouble?
  
  One may create a 'Packages' file for some extra deb-package:
  
  localhost:~# cd /usr/local
  localhost:/usr/local# mkdir debs
  localhost:/usr/local# cd debs
  localhost:/usr/local/debs# mkdir package_name
  localhost:/usr/local/debs# cp path/to/debfile package_name
  localhost:/usr/local/debs# dpkg-scanpackages package_name\
some_empty_override_file\
debs/  Packages
  
  Additional entry in /etc/apt/sources.list:
  
  deb file:/usr/local debs/
  
  This way installing or uninstalling may be more properly achieved.
  
  At least I have been doing it this way, and it has been working fine.
  Any comments?
 
 Just one: it's completely unnecessary. dpkg can uninstall any
 currently-installed package. It has no need, and probably completely
 ignores, the original .deb file.
 
 [...]

Thanks, Craig, I will try out dpkg -i right now...
Andreas.



Re: .deb packages from outside debian/dists/ ?

2002-02-12 Thread Andreas Hetzmannseder
On Tue, Feb 12, 2002 at 01:39:23PM -0500, David Z Maze wrote:
 Andreas Hetzmannseder [EMAIL PROTECTED] writes:
  On Sun, Feb 10, 2002 at 12:04:01AM -0500, Ben Collins wrote:
  dpkg -i blah.deb
  [...]
  
  If you decided to uninstall 'blah.deb', wouldn't you run into
  trouble?
 
 Of what sort?  dpkg doesn't need the package file to uninstall an
 installed package.
 
  One may create a 'Packages' file for some extra deb-package:
 ...
  Additional entry in /etc/apt/sources.list:
 
 The only thing this gains you is having your packages not be
 advertised as obsolete or locally installed in dselect or aptitude.
 It also might be a win if you're sharing custom packages between
 several machines using a local Web server or a shared filesystem.
 
 [...]

Thanks for your suggestions, Mr. Maze.

I just tried out installing an extra deb-package called phoenix
via dpkg -i ...much simpler anyway :)

Interestingly I found no difference in dselect's hanling:
It is listed under 'Up-to-date Extra packages in section alien'
as it was before.

I have no experience with aptitude yet.

Removing/purging the package again was no problem at all.
I tend to use dselect all the time.

Kind regards,
Andreas.



.deb packages from outside debian/dists/ ?

2002-02-09 Thread Paul E Condon
I want to install some software that I downloaded as a .deb file, but it
did not come from a Debian mirror. Instead it came from a ftp download
from a developer's web site. The only way I have ever used dselect, dpkg, or
apt-get have been to get stuff from a Debian mirror and then unpack and 
install it. This happened all automatically. Now I have a file in my home
directory. Where do I put it? What commands and options do I use?

And most important - where are the answers to these questions in the 
documentation?

Thanks.

-- 
Paul E Condon
[EMAIL PROTECTED] 



Re: .deb packages from outside debian/dists/ ?

2002-02-09 Thread Craig Dickson
begin  Paul E Condon  quotation:

 I want to install some software that I downloaded as a .deb file, but it
 did not come from a Debian mirror. Instead it came from a ftp download
 from a developer's web site. The only way I have ever used dselect, dpkg, or
 apt-get have been to get stuff from a Debian mirror and then unpack and 
 install it. This happened all automatically. Now I have a file in my home
 directory. Where do I put it? What commands and options do I use?
 
 And most important - where are the answers to these questions in the 
 documentation?

man dpkg

However, the answer to your other questions are that it doesn't matter
where you put the .deb file. You just make yourself root and run

   dpkg -i file.deb

substituting the name of the .deb for file.deb.

Craig


pgppUZ7wMOXBF.pgp
Description: PGP signature


Re: .deb packages from outside debian/dists/ ?

2002-02-09 Thread Ben Collins
On Sat, Feb 09, 2002 at 08:31:50PM -0800, Paul E Condon wrote:
 I want to install some software that I downloaded as a .deb file, but it
 did not come from a Debian mirror. Instead it came from a ftp download
 from a developer's web site. The only way I have ever used dselect, dpkg, or
 apt-get have been to get stuff from a Debian mirror and then unpack and 
 install it. This happened all automatically. Now I have a file in my home
 directory. Where do I put it? What commands and options do I use?

dpkg -i blah.deb

 And most important - where are the answers to these questions in the 
 documentation?

dpkg --help
man dpkg
man deb



Ben

-- 
 .--===-=-==-=---==-=-.
/   Ben Collins--Debian GNU/Linux--WatchGuard.com  \
`  [EMAIL PROTECTED]   --   [EMAIL PROTECTED]   '
 `---=--===-=-=-=-===-==---=--=---'