| Author |
Message |
|
|
|
Post subject: APT: I'm looking for hint
Posted: Apr 02, 2008 - 09:36 PM
|
|

Joined: Dec 17, 2007
Posts: 171
Location: Italy
Status: Offline
|
|
I know that after a apt-get update I can know (with hermes) a list of packages that can be updated.
I want to know if was added on the repository packages that weren't previously. (that hadn't a previous version)
Can I know that with an apt operation after an apt-get update? |
_________________ The free(dom) technologies are possible!
Stuff for free(dom) software newbies on work!
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 02, 2008 - 11:39 PM
|
|
Joined: Dec 04, 2006
Posts: 640
Status: Offline
|
|
dist-upgrading removes packages and/or installs new packages, as well as updating them, so the best method to see what apt-get would do would be to just run:
Code:
apt-get dist-upgrade
and press N
or to use the simulated mode to see what apt-get would do:
Code:
apt-get -s dist-upgrade
If you really do want to see a list of upgradeable packages:
Code:
apt-get update
apt-show-versions -u
This will show what packages have updated versions to upgrade to, but will not show what apt-get dist-upgrade will do (loads of packages may be removed). |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 03, 2008 - 04:23 AM
|
|

Joined: Dec 17, 2007
Posts: 171
Location: Italy
Status: Offline
|
|
| Yes, thank you! But the new added packages to the repos that haven't a previous version? |
_________________ The free(dom) technologies are possible!
Stuff for free(dom) software newbies on work!
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 03, 2008 - 04:59 PM
|
|
Joined: Dec 04, 2006
Posts: 640
Status: Offline
|
|
| For that, you'll have to look at the output of apt-get dist-upgrade or apt-get -s dist-upgrade |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 03, 2008 - 05:39 PM
|
|

Joined: Dec 17, 2007
Posts: 171
Location: Italy
Status: Offline
|
|
| No, that show me only the new packages that can be upgraded, not the uninstalled packages new to the repository. |
_________________ The free(dom) technologies are possible!
Stuff for free(dom) software newbies on work!
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 03, 2008 - 08:55 PM
|
|
Joined: Dec 04, 2006
Posts: 640
Status: Offline
|
|
I'm not sure what you are talking about.
I don't think there is any command that will tell you what new packages are introduced to the repository. apt-get -s dist-upgrade will tell you what new packages that a dist-upgrade will bring in. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 03, 2008 - 10:40 PM
|
|

Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
|
|
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 03, 2008 - 10:44 PM
|
|

Joined: Dec 05, 2007
Posts: 32
Location: Kathmandu
Status: Offline
|
|
| Try and stick with SMXI on upgrades and updates . This should give you the options and view you are asking about. Try the sidux manual, it should be a big help to you too. |
_________________ Linux 2.6.25-11.slh.1-sidux-686 i686 [ sidux 2007-04.5 - Έρως christmas special - kde-lite - (200712260129) ]
Rock on sidux !
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 04, 2008 - 03:46 AM
|
|

Joined: Dec 17, 2007
Posts: 171
Location: Italy
Status: Offline
|
|
Synaptic has the unique feature of showing the detected uninstalled packages new to the repository. I thinked it is an apt CLI option. If anyone know, maybe is a comparison made by synaptic on the previous and the new updated list of packages.
Since I don't want to install synaptic in sidux (for the huge amount of packages too) I'm looking for the same option through the command line. |
_________________ The free(dom) technologies are possible!
Stuff for free(dom) software newbies on work!
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 04, 2008 - 06:40 AM
|
|
Joined: Dec 10, 2007
Posts: 102
Location: Italy
Status: Offline
|
|
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 05, 2008 - 03:03 AM
|
|

Joined: Dec 17, 2007
Posts: 171
Location: Italy
Status: Offline
|
|
| kpackage doesn't show the information I'm looking for! Like an exemple, kpackage, apt, adept, aptitude... will not show that the KDE4 package is added to the sid repo. This is only an example. But Synaptic show this in a separated category in the status view. I think it is an apt function but I don't know how can I obtain this with the command line. Thank you anyway. I can live without it. |
_________________ The free(dom) technologies are possible!
Stuff for free(dom) software newbies on work!
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 10, 2008 - 06:07 PM
|
|
Joined: Aug 14, 2007
Posts: 13
Location: Indiana
Status: Offline
|
|
| you could write a script/cronjob to run a 'dpkg -l' everyday, and write it to a file, then grep it for only uninstalled packages and diff the current day with the previous day, and write out the results to a file, or email it or whatever.... |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Apr 10, 2008 - 07:01 PM
|
|

Joined: Dec 17, 2007
Posts: 171
Location: Italy
Status: Offline
|
|
| A complex idea, but I can make this script. Thanks! |
_________________ The free(dom) technologies are possible!
Stuff for free(dom) software newbies on work!
|
| |
|
|
|
 |
|
|
Post subject: RE: APT: I
Posted: Jun 24, 2008 - 02:38 PM
|
|

Joined: Jan 07, 2008
Posts: 297
Status: Offline
|
|
You can wrap your apt-get update call like this:
Code:
dpkg-query -l '*' | awk '/^.n/ { print $2 }' > ~/pkg.old
apt-get update
dpkg-query -l '*' | awk '/^.n/ { print $2 }' > ~/pkg.new
diff ~/pkg.old ~/pkg.new
This gives you a diff of the not installed, available packages. You could redirect the output of the diff to a file named by date so you can keep track of all changes over time. |
|
|
| |
|
|
|
 |
|
|