How to list all packages intentionally installed by APT?

How to list all packages intentionally installed by APT?

To list all packages intentionally installed (not as dependencies) by apt commands, run the following : This provides a reverse time based view, with older commands listed first: Commandline: apt-get install k3b Commandline: apt-get install jhead

What causes apt-get to install instead of remove?

Identical to install except that packages are removed instead of installed. If a plus sign ( +) is appended to the package name (with no intervening space), the identified package will be installed instead of removed. Causes apt-get to fetch source packages. APT will examine the available packages to decide which source package to fetch.

How does apt get the latest version of Linux?

APT will examine the available packages to decide which source package to fetch. It will then find and download into the current directory the newest available version of that source package. Source packages are tracked separately from binary packages via rpm-src type lines in the sources.list (5) file.

When do I need to update my apt-get package?

An update must be performed first so that apt-get knows that new versions of packages are available.

How do I install PHP extension in Apt?

Extensions are available as packages and can be easily installed with apt : For example, to install MySQL and GD extensions, you would run the following command: After installing a new PHP extension, depending on your setup, do not forget to restart Apache or PHP FPM service.

Which is the best way to install PHP?

Ondřej Surý, a Debian developer, maintains a repository that includes multiple PHP versions. To enable the repository , run: You can now install any PHP version you need by appending the version number to the package name: For example, to install PHP 7.1 and few common PHP modules, you would run:

How to install PHP 7.4 with Apache web server?

Installing PHP 7.4 with Apache If you’re using Apache as your web server, run the following commands to install PHP and Apache PHP module: sudo apt update sudo apt install php libapache2-mod-php Once the packages are installed, restart Apache for the PHP module to get loaded:

Are there recommended packages in apt-get Ask Ubuntu?

People say that Recommended packages are installed by default, but they are clearly not included in the NEW packages that will be installed above.

How to get list of installed packages in Ubuntu?

To get a list of a specific package installed: dpkg –get-selections | grep postgres To save that list to a text file called packages on your desktop do this in your terminal: dpkg –get-selections | grep -v deinstall > ~/Desktop/packages

How can I get a list of all my installed software?

There’s also a tool called Aptik (currently proprietary, both command line and GUI) which can help you view a list of all installed packages, with an option to select/unselect some of them, make a backup list, and then restore the same set of packages in another system.

How to list installed packages sorted by installation date?

This can be helpful while you want to get the rpm packages update history such as when a package is installed, how many packages are installed on your system on a specific date and time and what packages you have installed on a certain date or time in your Linux box. 1. List installed packages sorted by install date on Arch Linux and derivatives 2.

Is there a way to track the installation date of Apt?

In general, dpkg and apt don’t seem to track the installation date, going by the lack of any such field in the dpkg-query man page. And eventually old /var/log/dpkg.log.* files will be deleted by log rotation, so that way isn’t guaranteed to give you the entire history of your system.

Where do I find the history of Apt tools?

If you used the APT tools (which you presumably did since you’re concerned about automatically vs manually installed packages), there’s a history in /var/log/apt/history.log. As long as it hasn’t rotated away, it keeps track of all APT installations, upgrades and removals, with an annotation for packages marked as automatically installed.