Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Kenneth Jacker
  ne> if (dpkg -l package-name | grep  -c ii ) dpkg -i ./package.deb;

Though I might again consider using 'apt-zip', a slight variation of
the above should do what I need ...

Thanks, Niels!

  -Kenneth


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Curt Howland
Hi.

This isn't a silly question at all. For a long time I would use 
dselect to just update the list of available packages, then I have to 
view them just to get back out to the prompt to "update".

However, this will do the same:

apt-get update ; apt-get upgrade

The first updates the list of available packages from the archives in 
your /etc/apt/sources.list, the second will upgrade the installed 
packages to their latest version.

Using dselect did give me a couple of good things, though. Right at 
the top of the package list are the "New" ones, to browse through 
just in case I decide to try something new. But I also run 
"unstable", so there are often new things to try.

YMMV, 

Curt-



-- 
September 11th, 2001
The proudest day for gun control and central 
planning advocates in American history


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Niels L Ellegaard
On Sun, 07 Nov 2004 11:05:01 -0500
Kenneth Jacker <[EMAIL PROTECTED]> wrote:

> How can I use 'dpkg' to install a new .deb, but *only* if the package
> is already on a machine?  With RPM, you can use the "freshen" option
> ("-F" or "--freshen").  But how with 'dpkg'?
> 
> In other words:
>   o If the package is already installed, then update it
>   o If the package is not installed, do nothing (do *not* install it)

You may succeed with one of the following two suggestions (change syntax of 
"if" according to shell)

if (dpkg -l package-name | grep  -c ii ) apt-get install package-name;

if (dpkg -l package-name | grep  -c ii ) dpkg -i ./package.deb;

But I still don't understand why you wish to do all this. In most cases it is 
easier to upgrade all packages at once:

apt-get update && apt-get upgrade

Good luck

Niels

 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Ron Johnson
On Sun, 2004-11-07 at 13:06 -0500, Kenneth Jacker wrote:
>   jh> why would you just one specific package to be updated?
> 
> Sorry I didn't explain more.  Here's the situation ...
> 
> I have an office machine, O, and a home machine, H both using
> sarge/testing.  O has a high-speed connection to the Internet, but H
> doesn't.  After "updating" O, I copy all the .deb files in
> O:/var/cache/apt/archives to removable media and bring them home.
> 
> Once home, I basically do a "dpkg -i *.deb" of the files copied from O.
> (It's actually a bit more complicated due to dependencies ...)
> 
> Herein lies the problem.  There are packages I install/run on O (e.g.,
> 'mailman') that I do not want to install/run on H.  However, if I
> quickly do "dpkg -i *.deb" on H, it'll install *all* the .debs --
> including 'mailman'.
> 
> Though I *could* write a script to accomplish what I want (i.e.,
> ensuring each package is present before upgrading), I thought there
> might be an easier approach via a 'dpkg' command-line option (similar
> to "rpm -F").

Why not just:
  # cp /cdrom/*deb /var/cache/apt/archives
  # apt-get update
  # apt-get upgrade

Any debs that are already in H:/var/cache/apt/archives won't be
re-downloaded.  The caveat is that any relevant packages that have
been moved into sarge in the interregnum will get downloaded.
This way is a lot simpler, though.

-- 
-
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B

"Whatever may be the moral ambiguities of the so-called demoratic
nations and however serious may be their failure to conform
perfectly to their democratic ideals, it is sheer moral
perversity to equate the inconsistencies of a democratic
civilization with the brutalities which modern tyrannical states
practice."
Reinhold Nieburhr, ca. 1940



signature.asc
Description: This is a digitally signed message part


Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Kenneth Jacker
  jh> why would you just one specific package to be updated?

Sorry I didn't explain more.  Here's the situation ...

I have an office machine, O, and a home machine, H both using
sarge/testing.  O has a high-speed connection to the Internet, but H
doesn't.  After "updating" O, I copy all the .deb files in
O:/var/cache/apt/archives to removable media and bring them home.

Once home, I basically do a "dpkg -i *.deb" of the files copied from O.
(It's actually a bit more complicated due to dependencies ...)

Herein lies the problem.  There are packages I install/run on O (e.g.,
'mailman') that I do not want to install/run on H.  However, if I
quickly do "dpkg -i *.deb" on H, it'll install *all* the .debs --
including 'mailman'.

Though I *could* write a script to accomplish what I want (i.e.,
ensuring each package is present before upgrading), I thought there
might be an easier approach via a 'dpkg' command-line option (similar
to "rpm -F").

Hopefully what I'm trying to do is now clearer ...

Thanks for the responses!

  -Kenneth

PS  I realize I could also use 'apt-zip'.  But so far, the above
approach has worked pretty well ...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Alexander Schmehl
* Alexander Schmehl <[EMAIL PROTECTED]> [041107 17:42]:
> * Kenneth Jacker <[EMAIL PROTECTED]> [041107 17:05]:
> > How can I use 'dpkg' to install a new .deb, but *only* if the package
> > is already on a machine?  With RPM, you can use the "freshen" option
> > ("-F" or "--freshen").  But how with 'dpkg'?
> apt-get -u --reinstall --fix-missing install $(dpkg -S LC_MESSAGES | cut -d: 
> -f1 | tr ', ' '\n' | sor t -u)

Sorry, missunderstood your question.

Forget that, and read Joris Mail instead.


Yours sincerely,
  Alexander



signature.asc
Description: Digital signature


Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Alexander Schmehl
* Kenneth Jacker <[EMAIL PROTECTED]> [041107 17:05]:

> How can I use 'dpkg' to install a new .deb, but *only* if the package
> is already on a machine?  With RPM, you can use the "freshen" option
> ("-F" or "--freshen").  But how with 'dpkg'?

The only way I know (got through the package localepurge) is the
following:

apt-get -u --reinstall --fix-missing install $(dpkg -S LC_MESSAGES | cut -d: 
-f1 | tr ', ' '\n' | sor
t -u)

But there might be a simpler ways I'm not aware of.


Yours sincerely,
  Alexander


signature.asc
Description: Digital signature


Re: 'rpm --freshen': dpkg Equivalent?

2004-11-07 Thread Joris Huizer
Kenneth Jacker wrote:
How can I use 'dpkg' to install a new .deb, but *only* if the package
is already on a machine?  With RPM, you can use the "freshen" option
("-F" or "--freshen").  But how with 'dpkg'?
In other words:
  o If the package is already installed, then update it
  o If the package is not installed, do nothing (do *not* install it)
Sorry if this is obvious, but I can't seem to find out how to do it!
Thanks,
apt-get upgrade/apt-get dist-upgrade (after apt-get update) will upgrade 
all packages; why would you just one specific package to be updated?

HTH,
Joris
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]