Sziasztok!
Az /etc/apt/apt.conf file-omban már évek óta ez van:
APT::Authentication::TrustCDROM "true";
Acquire::http::Proxy "false";
/*
* Option: Aptitude::Delete-Unused
* Default: true
* Description: If this option is true, automatically installed packages which
* are no longer required will be automatically removed. For more information,
* see the section called “Managing automatically installed packages”.
*/
Aptitude::Delete-Unused "true";
/*
* Option: Aptitude::Purge-Unused
* Default: false
* Description: If this option is true and Aptitude::Delete-Unused is also
* true, then packages which are unused will be purged from the system,
* removing their configuration files and perhaps other important data. For
* more information about which packages are considered to be “unused”, see the
* section called “Managing automatically installed packages”. THIS OPTION CAN
* CAUSE DATA LOSS! DO NOT ENABLE IT UNLESS YOU KNOW WHAT YOU ARE DOING!
*/
Aptitude::Purge-Unused "true";
/*
* Option: Aptitude::Recommends-Important
* Default: true
* Description: If this option is true and Aptitude::Auto-Install is true,
* installing a new package will also install any packages that it recommends.
* Furthermore, if this option is true, then packages will be kept on the
* system if an installed package recommends them.
*/
Aptitude::Recommends-Important "false";
Arra figyeltem ma fel, ha egy csomagot feltelepítek és annak van függősége, akkor a csomag törlésekor az automatikusan telepített függőség nem mindig törlődik, pedig eddig szépen működött.
Példa a működésre:
root@silent:~# aptitude purge moc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
libavc1394-0{pu} libcurl3-gnutls{pu} libfaad0{pu} libflac8{pu} libfreebob0{pu} libid3tag0{pu}
libiec61883-0{pu} libjack0{pu} libmad0{pu} libmodplug0c2{pu} libmpcdec3{pu} libogg0{pu} libraw1394-8{pu}
libresid-builder0c2a{pu} libsamplerate0{pu} libsidplay2{pu} libsidutils0{pu} libsndfile1{pu} libspeex1{pu}
libtag1c2a{pu} libtagc0{pu} libvorbis0a{pu} libvorbisfile3{pu} libwavpack1{pu} moc{p}
0 packages upgraded, 0 newly installed, 25 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 8004kB will be freed.
Do you want to continue? [Y/n/?]
Példa a nem működésre:
root@silent:~# aptitude install mailx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
bsd-mailx{a} liblockfile1{a} mailx
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/191kB of archives. After unpacking 401kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Selecting previously deselected package liblockfile1.
(Reading database ... 54607 files and directories currently installed.)
Unpacking liblockfile1 (from .../liblockfile1_1.08-3_amd64.deb) ...
Selecting previously deselected package bsd-mailx.
Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20071201cvs-3_amd64.deb) ...
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_1%3a20071201-3_all.deb) ...
Processing triggers for man-db ...
Setting up liblockfile1 (1.08-3) ...
Setting up bsd-mailx (8.1.2-0.20071201cvs-3) ...
Setting up mailx (1:20071201-3) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
root@silent:~# aptitude purge mailx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
mailx{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 36,9kB will be freed.
Do you want to continue? [Y/n/?]
Ez mitől lehet?
Illetve hogyan lehet lebeszélni arról, hogy az aptitude-ot futtató felhasználónak a home-jába ne készítsen config file-t, mert man szerint ez felülbírálja az /etc/apt.conf-ot, de ahogy látom első futáskor meg nem emeli át az /etc/apt.conf-ból a beállításokat.
root@silent:~# rm -rf .aptitude/
root@silent:~# aptitude install mailx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
root@silent:~# cat .aptitude/config
APT "";
APT::Install-Recommends "false";
aptitude "";
aptitude::Ignore-Recommends-Important "true";
root@silent:~#
Előre is köszönöm a segítséget!
- 1290 megtekintés
Hozzászólások
Nincs ötlet?
- A hozzászóláshoz be kell jelentkezni