[Aptitude-devel] Bug#834967: say -t is different than /

積丹尼 Dan Jacobson jidanni at jidanni.org
Sun Aug 21 04:21:37 UTC 2016


Package: aptitude
Version: 0.8.3-1
Severity: wishlist
File: /usr/share/man/man8/aptitude-curses.8.gz

At

       -t <release>, --target-release <release>
           Set the release from which packages should be installed. For
           instance, "aptitude -t experimental ..."  will install packages
           from the experimental distribution unless you specify otherwise.

           This will affect the default candidate version of packages
           according to the rules described in apt_preferences(5).

           This corresponds to the configuration item APT::Default-Release.

please remind the user that -t is not the same as "/"

           To select a particular version of the package, append "=<version>"
           to the package name: for instance, "aptitude install apt=0.3.1".
           Similarly, to select a package from a particular archive, append
           "/<archive>" to the package name: for instance, "aptitude install
           apt/experimental". You cannot specify both an archive and a version
           for a package.

and that they should use "/" for cases like:


# apt-cache policy $@
midori:
  Installed: 0.5.12~wk2-exp1
  Candidate: 0.5.12~wk2-exp1
  Version table:
 *** 0.5.12~wk2-exp1 990
        990 http://free.nchc.org.tw/debian experimental/main i386 Packages
        100 /var/lib/dpkg/status
     0.5.11-ds1-4 500
        500 http://free.nchc.org.tw/debian unstable/main i386 Packages
# aptitude -t unstable install $@
midori is already installed at the requested version (0.5.12~wk2-exp1)
midori is already installed at the requested version (0.5.12~wk2-exp1)
The following packages will NOT be UPGRADED:
  debian-reference-en  libcurses-perl{a}  libnet-ssleay-perl{a}
  libperl5.22{a} (R: libarchive-tar-perl, R: libcompress-raw-bzip2-perl, R: libcompress-raw-zlib-perl, R: libcompress-zlib-perl, R: libdigest-md5-perl, R: libdigest-sha-perl, R: libencode-perl, R: libio-compress-base-perl, R: libio-compress-bzip2-perl, R: libio-compress-perl, R: libio-compress-zlib-perl, R: libmime-base64-perl, R: libmodule-corelist-perl, R: libstorable-perl, R: libsys-syslog-perl, R: libthreads-perl, R: libthreads-shared-perl, R: libtime-hires-perl, R: libtime-piece-perl, R: perl, R: perl-base)
  libxml-libxml-perl{a}  perl  perl-base  perl-doc
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?]

Current status: 0 (+0) broken, 8 (+0) upgradable, 52313 (+0) new.


# aptitude -t unstable reinstall $@
The following packages will be REINSTALLED:
  midori
The following packages will NOT be UPGRADED:
  debian-reference-en  libcurses-perl{a}  libnet-ssleay-perl{a}
  libperl5.22{a} (R: libarchive-tar-perl, R: libcompress-raw-bzip2-perl, R: libcompress-raw-zlib-perl, R: libcompress-zlib-perl, R: libdigest-md5-perl, R: libdigest-sha-perl, R: libencode-perl, R: libio-compress-base-perl, R: libio-compress-bzip2-perl, R: libio-compress-perl, R: libio-compress-zlib-perl, R: libmime-base64-perl, R: libmodule-corelist-perl, R: libstorable-perl, R: libsys-syslog-perl, R: libthreads-perl, R: libthreads-shared-perl, R: libtime-hires-perl, R: libtime-piece-perl, R: perl, R: perl-base)
  libxml-libxml-perl{a}  perl  perl-base  perl-doc
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded.
Need to get 0 B/1,097 kB of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?]
(Reading database ... 138223 files and directories currently installed.)
Preparing to unpack .../midori_0.5.12~wk2-exp1_i386.deb ...
Unpacking midori (0.5.12~wk2-exp1) over (0.5.12~wk2-exp1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Setting up midori (0.5.12~wk2-exp1) ...
Processing triggers for libc-bin (2.24-0experimental1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...

Current status: 0 (+0) broken, 8 (+0) upgradable, 52313 (+0) new.



More information about the Aptitude-devel mailing list