Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for packages

June 4, 2020

Ubuntu Packages Kept Back

If you see packages are being kept back in Ubuntu, you can run the following to force an update.

sudo apt-get --with-new-pkgs upgrade

sudo apt-get --with-new-pkgs upgrade

March 11, 2019

Local RPM Install

Steps for creating a local RPM package installation.

# download plugin
yum install yum-plugin-downloadonly
# download package and dependencies
yum install --downloadonly reiserfs
# download package and dependencies to a specific directory
yum install --downloadonly --downloaddir=/home/ec2-user package
# download multiple packages
yum install --downloadonly --downloaddir=/root/mypackages/ package1 package2
# finally install package
rpm -ivh -r /home/ec2-user package.rpm

# download plugin yum install yum-plugin-downloadonly # download package and dependencies yum install --downloadonly reiserfs # download package and dependencies to a specific directory yum install --downloadonly --downloaddir=/home/ec2-user package # download multiple packages yum install --downloadonly --downloaddir=/root/mypackages/ package1 package2 # finally install package rpm -ivh -r /home/ec2-user package.rpm

November 26, 2014

Linode Linux Package Mirrors

One way to speed up the Linux package updates is to use a package mirror made available by Linode. They are hosted in all six of their data centers. Just pick a data center where your data is Linode server is located by doing the following.

Edit your sources list

sudo nano /etc/apt/sources.list

sudo nano /etc/apt/sources.list

Search and replace

# Replace this address 
http://us.archive.ubuntu.com/ubuntu/ 
 
# with the new address 
http://fremont.mirrors.linode.com/ubuntu/
 
# you can also use this - returns round robin of all locations
http://mirrors.linode.com/ubuntu/

# Replace this address http://us.archive.ubuntu.com/ubuntu/ # with the new address http://fremont.mirrors.linode.com/ubuntu/ # you can also use this - returns round robin of all locations http://mirrors.linode.com/ubuntu/

The next time you run a Linux update, it will be significantly faster.

sudo apt-get update
sudo apt-get upgrade

sudo apt-get update sudo apt-get upgrade

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021