Sudo apt upgrade single package8/8/2023 Now, you can run the apt-get install command with the specific version number, and voila! sudo apt-get install php5=5.5.16+dfsg-1+deb.sury. The first step is to update the local package repository cache so that your system knows about the availability of. Run the command sudo apt update to refresh package database. For example, the string for PHP 5.5 on Ubuntu is "5.5.16+dfsg-1+~precise+2". Upgrade single package using apt command. For remote server log in using the ssh command: ssh vivekyour-ubuntu-server-ip. Some older tutorial also mention sudo apt-get update and sudo apt-get upgrade. You should find the version number you want to upgrade to, and then copy the whole string that references it. 5 min read If you want to keep your Ubuntu or Debian system updated, you use the combination of sudo apt update and sudo apt upgrade commands. This will list all available version numbers. In our example, we use vlc to search for any applications that have vlc in the title. I have to, first, determine the version number to upgrade to, using sudo apt-cache policy php5 Open a terminal and use the apt search command followed by the name of an application. Similarily, I did not want to run the upgrade command, which would upgrade all packages on my server - sudo apt-get dist-upgradeįor example, I have PHP 5.3 installed and have added the ondrej PPA to my apt.sources using - sudo add-apt-repository ppa:ondrej/php5 In my experience on Ubuntu 12.04 LTS, using the command below will not upgrade the package if using a separate PPA - sudo apt-get -only-upgrade install How do I update sudo package version Ask Question Asked 3 years, 8 months ago Modified 3 years, 4 months ago Viewed 28k times 20 With the news of the vulnerability found in sudo versions prior to 1.8.28, I am trying to upgrade to that version, but have had no luck.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |