~fredg/twapake

c3d9d0573c81634efec26300bc76ddb5b2595728 — Fred. Galusik 7 years ago 57581e3
fix
1 files changed, 64 insertions(+), 59 deletions(-)

M README.md
M README.md => README.md +64 -59
@@ 1,84 1,89 @@
Twapake is a utility for Slackware and Slackware based operating
systems only.

Features:
--------
    - print a list of N packages sorted by installed date to STDOUT.
    - print a "twapake snapshot", a list of packages sorted by
    installed date in a log file (/var/log/twapake/$date_twapake.log).
    - can remove the last N installed packages.
    - ...
## Features

Download:
---------
Sources tarballs and Slackware packages can be found there:
http://dl.galusik.xyz/slackware/twapake/
* print a list of N packages sorted by installed date to STDOUT.
* print a "twapake snapshot", a list of packages sorted by
* installed date in a log file (/var/log/twapake/$date_twapake.log).
* can remove the last N installed packages.
* ...


## Download

Sources tarballs and SlackBuild can be found there:

https://framagit.org/fredg/twapake/tree/master/


## Purpose
Twapake can be usefull when:
----------------------------
    - making a daily snapshot with the help of a cron job.
      If you are getting into troubles, it will be easy to see which new
      packages have been installed since time T.
    - you like testing a lot off packages, some of them making you install
      a bunch of extra libs.
      You can print a twapake snapshot before your testing party and after.
      The diff will give you the list of what you have to remove to
      retrieve a clean system.
    - you want to see what are the last 5 installed packages.
    - you want to remove the last 6 installed packages.

* making a daily snapshot with the help of a cron job,
* if you are getting into troubles, it will be easy to see which new packages
  have been installed since time T,
* you like testing a lot off packages, some of them making you install a bunch
  of extra libs,
* you can print a twapake snapshot before your testing party and, after. The
  diff will give you the list of what you have to remove to retrieve a clean
  system,
* you want to see what are the last 5 installed packages,
* you want to remove the last 6 installed packages.


### What is a twapkake snapshot (twapake --logfile)

What is a twapkake snapshot (twapake --logfile)
-----------------------------------------------

It's a file /var/log/twapake/$date_twapake.log

Twapake snapshot on Thu Feb 17 04:40:49 2011
===========================================================================

Installed dates             Packages (total: 793)
------------------------    ----------------------------------------
Mon Feb 14 19:58:22 2011    salixtools-gtk-1.2.0-noarch-1gv
Mon Feb 14 19:58:20 2011    salixtools-1.5.0-noarch-1gv
Mon Feb 14 19:58:19 2011    depfinder-1.3.8-x86_64-1gv
Sun Feb 13 19:46:30 2011    libetpan-1.0-x86_64-1tm
Sun Feb 13 19:46:30 2011    claws-mail-3.7.8-x86_64-2tm
Sun Feb 13 19:07:07 2011    libmatroska-1.0.0-x86_64-1gv
Sun Feb 13 19:07:07 2011    vlc-1.1.7-x86_64-1tm
Sun Feb 13 19:07:07 2011    libebml-1.0.0-x86_64-1gv
Sun Feb 13 19:07:06 2011    libdvbpsi-0.1.7-x86_64-1tm
Sun Feb 13 14:49:04 2011    etm-702-x86_64-1fg
Sun Feb 13 14:34:34 2011    wxPython-2.8.11.0-x86_64-1ab
Sun Feb 13 14:28:17 2011    slapt-update-service-0.5.0b-x86_64-2gv
Sun Feb 13 14:28:09 2011    ...
```
Twapake snapshot on Sun Apr  2 17:46:45 2017
========================================================================

Installed dates		Packages (total: 1067)
-------------------	---------------------------------------------
2017-04-02 15:55:31	twapake-0.5.1-noarch-1_SBo
2017-04-02 15:15:21	perl-Curses-UI-0.9609-x86_64-1ponce
2017-04-02 15:15:14	perl-Curses-1.28-x86_64-1ponce
2017-04-02 13:51:58	password-store-1.6.5-noarch-1ponce
2017-04-02 13:51:56	pwgen-2.07-x86_64-1ponce
2017-04-02 13:51:52	xclip-0.12-x86_64-1ponce
2017-04-02 09:47:39	samba-4.6.2-x86_64-1
2017-04-02 09:47:25	nano-2.8.0-x86_64-1
2017-04-02 09:46:19	mozilla-firefox-l10n-fr-52.0.2-x86_64-1alien
2017-04-01 17:23:53	txt2tags-r1172-x86_64-1ponce
2017-03-31 19:21:36	xfce4-notifyd-0.3.6-x86_64-1
2017-03-31 19:21:34	pkg-config-0.29.2-x86_64-1
2017-03-31 19:21:33	openssh-7.5p1-x86_64-1
2017-03-31 19:21:31	mozilla-firefox-52.0.2-x86_64-1
...
..
.

```

For a less detailed list (twapake -i)
-------------------------------------

salixtools-gtk-1.2.0-noarch-1gv
salixtools-1.5.0-noarch-1gv
depfinder-1.3.8-x86_64-1gv
libetpan-1.0-x86_64-1tm
claws-mail-3.7.8-x86_64-2tm
libmatroska-1.0.0-x86_64-1gv
vlc-1.1.7-x86_64-1tm
libebml-1.0.0-x86_64-1gv
libdvbpsi-0.1.7-x86_64-1tm
etm-702-x86_64-1fg

```
twapake-0.5.1-noarch-1_SBo
perl-Curses-UI-0.9609-x86_64-1ponce
perl-Curses-1.28-x86_64-1ponce
password-store-1.6.5-noarch-1ponce
pwgen-2.07-x86_64-1ponce
xclip-0.12-x86_64-1ponce
samba-4.6.2-x86_64-1
nano-2.8.0-x86_64-1
mozilla-firefox-l10n-fr-52.0.2-x86_64-1alien
...
..
.
```

You can choose the number of packages to be printed:
twapake -i -n 5 : last 5 installed packages

    twapake -i -n 5 : last 5 installed packages


### Removing last installed packages

Removing last installed packages
--------------------------------
twapake -r -n 5 : remove the last 5 installed packages
    twapake -r -n 5 : remove the last 5 installed packages