[sisyphus] [niemeyer на conectiva.com: [apt-rpm] Full featured APT shell]

Dmitry V. Levin =?iso-8859-1?q?ldv_=CE=C1_altlinux=2Eorg?=
Чт Мар 6 01:16:39 MSK 2003


JFYI

----- Forwarded message from Gustavo Niemeyer <niemeyer@> -----

Date: Wed, 5 Mar 2003 18:50:19 -0300
From: Gustavo Niemeyer <niemeyer@>
To: apt-rpm на distro.conectiva.com.br
Cc: snapshot-users на distro.conectiva.com.br
Subject: [apt-rpm] Full featured APT shell

Yes! That's right! :-)

We'll have a full featured APT shell for the next release. Some of
it's fetures include:

- Stateful cache. Mark packages as you want and when satisfied with
  the current selection, commit to the system.
  
- Gradual selection. Each time you select a package that will include
  more changes in the cache than was requested, you'll be notified
  about what changes will be made, and given the option to cancel.

- Smart completion. Command line completion for commands, package
  names, and versions. When removing, only installed packages will
  complete. When keeping, only packages selected for changing will
  complete.

- New list/ls command, allowing one to list packages in a confortable
  way, including shell wildcards. Also, options for listing only
  installed packages, only upgradable packages, listing installed
  and candidate versions, and listing summaries. This was inspired
  in The Poldek's counterpart.

- Inline help.

- Very fast.


Here is a long "screenshot" for your pleasure.


[root на ibook ..src/apt-rpm/bin]% ./apt-shell
Reading Package Lists... Done
Building Dependency Tree... Done
Welcome to the APT shell. Type "help" for more information.

apt> status
0 packages upgraded, 0 newly installed, 0 removed and 117 not upgraded.
Will need 0B of archives.
After unpacking 0B of additional disk space will be used.

apt> install dum [TAB pressed]
dummy  dump   

apt> install dummy= [TAB pressed]
0.1-1cl    1.0-1cl    1:1.0-1cl  1:1.5-1cl  

apt> install dummy=1:1.0-1cl

apt> status
The following NEW packages will be installed:
  dummy
0 packages upgraded, 1 newly installed, 0 removed and 117 not upgraded.
Will need 1476B of archives.
After unpacking 0B of additional disk space will be used.

apt> install alsa-lib-devel
Unrequested changes are needed to execute this operation.
The following packages will be upgraded
  alsa-lib-devel libalsa2
2 packages upgraded, 0 newly installed, 0 removed and 0 kept.
Will need more 289kB of archives.
After unpacking will need more 741B of disk space.
Do you want to continue? [Y/n] n
Abort.

apt> status
The following NEW packages will be installed:
  dummy
0 packages upgraded, 1 newly installed, 0 removed and 117 not upgraded.
Will need 1476B of archives.
After unpacking 0B of additional disk space will be used.

apt> commit
The following NEW packages will be installed:
  dummy
0 packages upgraded, 1 newly installed, 0 removed and 117 not upgraded.
Need to get 0B/1476B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] 
Executing RPM (-Uvh)...
Preparing...                ########################################### [100%]
   1:dummy                  ########################################### [100%]
Reading Package Lists... Done
Collecting File Provides... Done
Building Dependency Tree... Done

apt> help ls
Usage: list/ls [options] [pattern ...]

List packages matching the given patterns, or all packages if
no pattern is given. Wildcards are accepted.

Options:
  -h  This help text.
  -i  Show only installed packages.
  -u  Show only installed packages that are upgradable.
  -v  Show installed and candidate versions.
  -s  Show summaries.
  -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp

apt> ls dum*
dummy  dump   

apt> ls -v dum*
Name   Installed           Candidate
----   ---------           ---------
dummy  1:1.0-1cl           1:1.5-1cl
dump   -                   0.4b28-11400cl

apt> ls -s dum*
dummy - Dummy package doing weird stuff.
dump - Programs for backing up and restoring filesystems.

apt> ls -i dum*
dummy  

apt> 

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
_______________________________________________
apt-rpm mailing list
apt-rpm на distro.conectiva.com.br
http://distro.conectiva.com.br/mailman/listinfo/apt-rpm

----- End forwarded message -----

--
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20030306/9ef924ab/attachment-0010.bin>


Подробная информация о списке рассылки Sisyphus