element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Enchanted Objects
  • Challenges & Projects
  • Design Challenges
  • Enchanted Objects
  • More
  • Cancel
Enchanted Objects
Blog Arduino Yun Packages
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Workshopshed
  • Date Created: 1 May 2015 10:07 AM Date Created
  • Views 585 views
  • Likes 5 likes
  • Comments 2 comments
  • enchanted_cottage
  • enchanted_objects
  • package_manager
  • ardino_yun
Related
Recommended

Arduino Yun Packages

Workshopshed
Workshopshed
1 May 2015

Package Manager

All modern Linux distributions come with a package manager such as Yum or RPM. The Linux distribution included on the Arduino Yun is no exception. It uses OPKG (Open PacKaGe manager).

To get an upto date list of package you use the command opkg update to list the package available opkg list and there's install, update and remove commands for actually managing the packages. The instructions are covered in details in the link above.

 

Configuration

You can change the behaviour of OPKG via a configuration file /etc/opkg.conf . This contains the details of where OPKG downloads the packages from and where they are installed to. It can also incorporate signing and proxy settings if you need those for your system.

 

Sources

When you install an image to the Yun it contains some default locations where the package manager can look for new packages. And most of the time that's fine. However, if you find yourself not being able to install a third party component, in my case Python's requests[security] package. Then you might want to check some other package repositories. Note that some of these locations have packages for multiple systems so for the Arduino Yún you want to look for the "generic ar71xx" branch.

 

Arduino.cc

http://downloads.arduino.cc/openwrtyun/1/packages/

OpenWRT

http://downloads.openwrt.org/

Linino

http://download.linino.org/

 

Warning!

You may find that using other sources for packages causes things to fail. This is because the image creators have been very specific in what packages they put together to ensure they all work. Mixing packages is almost guaranteed to cause you additional work. What you need to go is to unpick the chain of packages for your problem installation. Once you've done this you can remove the old packages and re-install from the new repository.


Creating Packages

If you've got a lot of components you have created to put on your Yún and want to deploy to several devices then creating your own ipk packages might be a good solution.

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 10 years ago +1
    Discovered via the Arduino forums that you can change the source for packages to local. That might be useful if you need to load some packages on multiple boards or if your Arduino can't be connected to…
  • clem57
    clem57 over 10 years ago

    I did not know that. Thanks for the share Workshopshed

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 10 years ago

    Discovered via the Arduino forums that you can change the source for packages to local. That might be useful if you need to load some packages on multiple boards or if your Arduino can't be connected to the internet

     

    Setup local packages repository

     

    src/gz local file:////mnt/sda1/packages

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube