2010 m. vasario 23 d., antradienis

apt-get howto

Ubuntu instaliuojame programas
apt-get howto

  • apt-get check
    This command is a diagnostic tool. It does an update of the package lists and checks for broken dependencies.
  • apt-get -f install

    This command does the same thing as Edit->Fix Broken Packages in Synaptic. Do this if you get complaints about packages with "unmet dependences".

  • apt-get autoclean

    This command removes .deb files for packages that are no longer installed on your system. Depending on your installation habits, removing these files from /var/cache/apt/archives may regain a significant amount of diskspace.

  • apt-get clean

    The same as above, except it removes all packages from the package cache. This may not be desirable if you have a slow internet connection, since it will cause you to redownload any packages you need to install a program.

    • The package cache is in /var/cache/apt/archives . The command

      du -sh /var/cache/apt/archives
      will tell you how much space cached packages are consuming.

apt-cache search 
This command will find packages that include .
dpkg -l **

This will find packages whose names contain . Similar to apt-cache search, but also shows whether a package is installed on your system by marking it with ii (installed) and un (not installed).

apt-cache show 
This command shows the description of package and other relevant information including version, size, dependencies and conflicts

dlocate 

This command determines which installed package owns . It shows files from installed packages that match , with the name of the package they came from. Consider this to be a "reverse lookup" utility.

IconsPage/info.png In order to use this command, the package dlocate must be installed on your system.

dpkg -S 
This command does the same as dlocate, but does not require the installation of any additional packages. It is slower than dlocate but has the advantage of being installed by default on all Debian and Ubuntu systems

Komentarų nėra: