Sudo apt-get install ant-contrib




















Install a specific version of a package can be useful to avoid the bugs when you know which version of a package is concerned and make sure to disable a specific package from updating by holding the packages so it won't get automatically updated when you run 'apt-get upgrade'.

To handle Debian-based system packages, we use the apt-get command. To run this command you require administrative rights or a user with sudo privilege. In this tutorial, I will show you how to install a specific version of a package on Ubuntu Sometimes you can face issues or bug with a version of a package, this may cause you to choose a version which doesn't encounter bugs.

Before installing, it is possible to check the available versions of a package with the apt-cache madison command. Some third-party software i. Ignore the errors. Docker does not support Ubuntu To remove a third-party package repository, list all the enabled package repositories with the following command:.

As you can see, the third-party package repository is not in the enabled package repository list anymore. Once you have added new APT package repositories, run the following command to update the APT package repository cache:. You can list all the packages that are installed on your Ubuntu machine with the following command:. All the installed packages i. The list is very long. If you want to list the packages which are installed on your Ubuntu machine but a newer version update is available in the package repository, run the following command:.

As you can see, all the packages that have updates newer version available are listed. I will show you how to install these updates in a later section of this article. You can search for packages by the package name, the package description and so on.

You can use Regular Expressions for searching packages as well. For example, you can search for all the available text editor packages as follows:. As you can see, the packages that matched search query text editor are listed. I have shown only a small portion of the list here. Here, the green text represents the package name which you can use to install the package on your Ubuntu machine. The package is from web Section of the universe repository. The package will use KB of disk space once installed Installed-Size.

Once you have found the package or packages you want to install, you can easily install them on your Ubuntu machine. As you can see, installing this package will install 3 more dependency packages. In total 4 new packages will be installed. If you wish to install the latest, you may have to install it manually or via third party repositories. When finishes, you can verify whether Ant is installed successfully or not by checking its version:.

You can download Ant distribution from the Apache Ant website. Currently, the latest release of Ant is version 1. Your email address will not be published.



0コメント

  • 1000 / 1000