如何通过EB awsLinux上的yum来更新unixODBC

总之,我需要更新Elastic Beanstalk PHP实例上的unixODBC,最好使用yum,因为通过.ebextensions进行pipe理非常容易。

  • AWS Linux:运行PHP 7.0的64位Amazon Linux 2017.03 v2.4.2
  • 需要unixODBC:2.3.1

sudo yum info unixODBC

 Installed Packages Name : unixODBC Arch : x86_64 Version : 2.2.14 Release : 14.7.amzn1 Size : 1.1 M Repo : installed From repo : amzn-main Summary : A complete ODBC driver manager for Linux URL : http://www.unixODBC.org/ License : GPLv2+ and LGPLv2+ Description : Install unixODBC if you want to access databases through ODBC. : You will also need the mysql-connector-odbc package if you want to access : a MySQL database, and/or the postgresql-odbc package for PostgreSQL. Available Packages Name : unixODBC Arch : i686 Version : 2.2.14 Release : 14.7.amzn1 Size : 460 k Repo : amzn-main/2017.03 Summary : A complete ODBC driver manager for Linux URL : http://www.unixODBC.org/ License : GPLv2+ and LGPLv2+ Description : Install unixODBC if you want to access databases through ODBC. : You will also need the mysql-connector-odbc package if you want to access : a MySQL database, and/or the postgresql-odbc package for PostgreSQL. 

我在serverfaultfind了2个相关文章,但是他们不再工作。 有人build议我禁用yum的优先权,我做了,但没有改变。