Re: How to track what packages apt-get installs and removes?

2006-01-30 Thread Michelle Konzack
If you want to know the current installed packages in cronological
order use tddebidate (Coded in BASH and packed as DEB, attached)

Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


Am 2006-01-22 19:08:24, schrieb Sonixxfx:
 Hi,
 
 Can someone tell me how I can track what packages apt-get installs and
 removes? I occasianally run apt-get dist-upgrade from cron and I would like
 to know what has been installed and removed by apt-get afterwards.
 
 Thanks for your help.
 
 Regards,
 
 Ben
- END OF REPLYED MESSAGE -



-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/3/8845235667100 Strasbourg/France   IRC #Debian (irc.icq.com)


tddebidate_0.4.3-6_all.deb
Description: application/debian-package


Re: How to track what packages apt-get installs and removes?

2006-01-23 Thread Marc Shapiro

Bill Marcum wrote:

On Sun, Jan 22, 2006 at 07:08:24PM +0100, Sonixxfx wrote:


Hi,

Can someone tell me how I can track what packages apt-get installs and
removes? I occasianally run apt-get dist-upgrade from cron and I would like
to know what has been installed and removed by apt-get afterwards.

Thanks for your help.



If you use aptitude, the syntax is almost exactly the same, and it logs 
its actions in /var/log/aptitude.  Running upgrades from cron is risky, 
you might try the -s option, which tells what would be installed and 
removed without actually doing it.


I use cron-apt to download the updated files overnight, but not install 
them.  In the morning, I run apt-get -u upgrade and I can see what will 
be installed before I let it actually make the changes.


--
Marc Shapiro
[EMAIL PROTECTED]


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




Re: How to track what packages apt-get installs and removes?

2006-01-23 Thread Sonixxfx
Everyone thanks for your help. I think aptitude is the most appropiate for me. 

What is the problem with updating from cron? I don't mind which
packages are updated as long as they are up to date, as I am running a
web server. Are there certain packages that can break my system
pherhaps? Is it a bit better to run apt-get upgrade than apt-get
dist-upgrade when I am updating automaticly anyhow? 


Thanks



Benp.s. sorry for mailing directly to you Mark

2006/1/23, Marc Shapiro [EMAIL PROTECTED]:
Bill Marcum wrote: On Sun, Jan 22, 2006 at 07:08:24PM +0100, Sonixxfx wrote:Hi,Can someone tell me how I can track what packages apt-get installs andremoves? I occasianally run apt-get dist-upgrade from cron and I would like
to know what has been installed and removed by apt-get afterwards.Thanks for your help. If you use aptitude, the syntax is almost exactly the same, and it logs
 its actions in /var/log/aptitude.Running upgrades from cron is risky, you might try the -s option, which tells what would be installed and removed without actually doing it.I use cron-apt to download the updated files overnight, but not install
them.In the morning, I run apt-get -u upgrade and I can see what willbe installed before I let it actually make the changes.--Marc Shapiro[EMAIL PROTECTED]
--To UNSUBSCRIBE, email to [EMAIL PROTECTED]with a subject of unsubscribe. Trouble? Contact 
[EMAIL PROTECTED]


Re: How to track what packages apt-get installs and removes?

2006-01-23 Thread Andrei Popescu
On Mon, 23 Jan 2006 18:12:10 +0100
Sonixxfx [EMAIL PROTECTED] wrote:

 Everyone thanks for your help. I think aptitude is the most appropiate for
 me.
 What is the problem with updating from cron? I don't mind which packages are
 updated as long as they are up to date, as I am running a web server. Are
 there certain packages that can break my system pherhaps? Is it a bit better
 to run apt-get upgrade than apt-get dist-upgrade when I am updating
 automaticly anyhow?
[snip]

Don't remember what you are running (stable, testing, ...), but considering you 
run stable without changing your apt preferences a dist-upgrade will upgrade 
you to 'etch' when it will be release. While at first this seems like a good 
idea, such a major change should not be done unattended. Automatically 
upgrading with stable is not so dangerous as it would be with testing or 
unstable, as you get only security updates. But you never know... And the 
logging is a good idea.

Andrei
-- 
If you can't explain it simply, you don't understand it well enough. (Albert 
Einstein)


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



Re: How to track what packages apt-get installs and removes?

2006-01-23 Thread Sonixxfx
Thanks Andrei.

>From now I am propably going to use 'aptitude upgrade' (I will have to learn how aptitude works) from cron.
When things go wrong I have a (mondo) image from my system so that I
can restore my system quickly when that would be nessesarry.
Regards,

Ben

2006/1/23, Andrei Popescu [EMAIL PROTECTED]:
On Mon, 23 Jan 2006 18:12:10 +0100Sonixxfx [EMAIL PROTECTED] wrote: Everyone thanks for your help. I think aptitude is the most appropiate for me.
 What is the problem with updating from cron? I don't mind which packages are updated as long as they are up to date, as I am running a web server. Are there certain packages that can break my system pherhaps? Is it a bit better
 to run apt-get upgrade than apt-get dist-upgrade when I am updating automaticly anyhow?[snip]Don't
remember what you are running (stable, testing, ...), but considering
you run stable without changing your apt preferences a dist-upgrade
will upgrade you to 'etch' when it will be release. While at first this
seems like a good idea, such a major change should not be done
unattended. Automatically upgrading with stable is not so dangerous as
it would be with testing or unstable, as you get only security updates.
But you never know... And the logging is a good idea.Andrei--If you can't explain it simply, you don't understand it well enough. (Albert Einstein)--To UNSUBSCRIBE, email to 
[EMAIL PROTECTED]with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: How to track what packages apt-get installs and removes?

2006-01-22 Thread Felix C. Stegerman
On 2006-01-22 19:08:24, Sonixxfx wrote:
 Hi,
 
 Can someone tell me how I can track what packages apt-get installs and
 removes? I occasianally run apt-get dist-upgrade from cron and I would like
 to know what has been installed and removed by apt-get afterwards.

I don't know about apt-get, but aptitude has a log file in
/var/log/aptitude.


Felix

-- 
Felix C. Stegerman [EMAIL PROTECTED]

Any sufficiently advanced bug is indistinguishable from a feature.
 -- R. Kulawiec


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



Re: How to track what packages apt-get installs and removes?

2006-01-22 Thread Jochen Schulz
Sonixxfx:
 
 Can someone tell me how I can track what packages apt-get installs and
 removes?

aptitude logs its actions. apt-get doesn't. But may may already be
happy with dpkg's logging mechanism. Caveat: dpkg in unstable doesn't
log yet. I don't know about aptitude in stable.

 I occasianally run apt-get dist-upgrade from cron [...]

I wouldn't do that.

J.
-- 
I am worried that my dreams pale in comparison beside TV docu-soaps.
[Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html


signature.asc
Description: Digital signature


Re: How to track what packages apt-get installs and removes?

2006-01-22 Thread Wayne Topa
Sonixxfx([EMAIL PROTECTED]) is reported to have said:
 Hi,
 
 Can someone tell me how I can track what packages apt-get installs and
 removes? I occasianally run apt-get dist-upgrade from cron and I would like
 to know what has been installed and removed by apt-get afterwards.
 
 Thanks for your help.
 
 Regards,
 
 Ben

I use this



#!/bin/sh

# Written by Larry Holish, [EMAIL PROTECTED]


# Script that writes current list of packages installed
# from /var/lib/dpkg/available to pkgs_sarge.current.
# Keeps a history of changes between package versions
# in etch_history.txt.

LISTDIR= (Directory you want the history saved to)
cd $LISTDIR

if [ -f 'sarge_history.txt.gz' ]; then
gunzip etch_history.txt.gz
fi

if [ -f 'pkgs_etch.current' ]; then
mv pkgs_etch.current pkgs_sarge.last
fi

COLUMNS=120 dpkg -l | grep ^i | cut -b 5-  pkgs_etch.current

diff -C 0 pkgs_etch.last pkgs_etch.current  etch_history.txt

gzip etch_history.txt
rm -f pkgs_etch.last

echo Updating Package list at (Directory you want the history saved to)
 
___

Run it after each update/upgrade

Wayne


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



Re: How to track what packages apt-get installs and removes?

2006-01-22 Thread Randy Belk

Felix C. Stegerman wrote:


On 2006-01-22 19:08:24, Sonixxfx wrote:
 


Hi,

Can someone tell me how I can track what packages apt-get installs and
removes? I occasianally run apt-get dist-upgrade from cron and I would like
to know what has been installed and removed by apt-get afterwards.
   



I don't know about apt-get, but aptitude has a log file in
/var/log/aptitude.


Felix

 


Install apt-history, it's the best thng since sliced bread...

do the following.
1. add the following to your sources.list
   deb-src http://www.mirror.ac.uk/sites/ftp.debian.org/debian/ 
unstable main

2. do an apt-get update
3. as root
   mkdir /root/debs
   cd debs
   apt-get build-dep apt-history  apt-get -b source apt-history
4. All that is left then is to do:
   dpkg -i apt-history_0.1-1_all.deb

I don't backport to much but I install this on all my debian servers and 
workstations.



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




Re: How to track what packages apt-get installs and removes?

2006-01-22 Thread Bill Marcum
On Sun, Jan 22, 2006 at 07:08:24PM +0100, Sonixxfx wrote:
 Hi,
 
 Can someone tell me how I can track what packages apt-get installs and
 removes? I occasianally run apt-get dist-upgrade from cron and I would like
 to know what has been installed and removed by apt-get afterwards.
 
 Thanks for your help.
 
If you use aptitude, the syntax is almost exactly the same, and it logs 
its actions in /var/log/aptitude.  Running upgrades from cron is risky, 
you might try the -s option, which tells what would be installed and 
removed without actually doing it.


-- 
Everybody wants to go to heaven, but nobody wants to die.


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