How to Install and Uninstall ruby-protected-attributes Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 07,2024

1. Install "ruby-protected-attributes" package

In this section, we are going to explain the necessary steps to install ruby-protected-attributes on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install ruby-protected-attributes

2. Uninstall "ruby-protected-attributes" package

Learn how to uninstall ruby-protected-attributes on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove ruby-protected-attributes $ sudo apt autoclean && sudo apt autoremove

3. Information about the ruby-protected-attributes package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: ruby-protected-attributes
Priority: optional
Section: universe/ruby
Installed-Size: 79
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Architecture: all
Version: 1.1.3-1
Replaces: ruby-activemodel-3.2
Depends: ruby | ruby-interpreter, ruby-activemodel (<< 2:5.0), ruby-activemodel (>= 2:4.0.1)
Filename: pool/universe/r/ruby-protected-attributes/ruby-protected-attributes_1.1.3-1_all.deb
Size: 13512
MD5sum: beb2137d87f02af4be0ead882ec8c8a6
SHA1: cfabe0daad9f44855014b7c51ede8179affe17f3
SHA256: 21c1e5c9a357c7e2c5c5cab4a412d22dd72032ed9a4d79acb6804ba454bf6102
Description-en: Protect attributes from mass assignment in Active Record models
This plugin adds the class methods `attr_accessible` and `attr_protected` to
your models to be able to declare white or black lists of attributes, avoiding
attacks by parameter injection against Rails applications.
Description-md5: c956a467687b74ba2e7702d98a204dc2
Homepage: https://github.com/rails/protected_attributes
Ruby-Versions: all
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

5. The same packages on other Linux Distributions